search for: tipo_trasporti

Displaying 1 result from an estimated 1 matches for "tipo_trasporti".

2005 Mar 08
4
change the model''s table name
...he table is called mice and I want a class called Mouse. class Mouse < ActiveRecord::Base table_name "mice" end I''m doing this cause I want tables in my language (italian) and avoid the nameS thing. just adding it in that way doesn''t work ArgumentError in Tipo_trasporti#index wrong number of arguments (1 for 0) /app/models/tipo_trasporti.rb:2:in `table_name'' /app/models/tipo_trasporti.rb:2 script/server:51 someone has suggested to use def: class TipoTrasporti < ActiveRecord::Base def table_name "tipo_trasporto"...