search for: tipotrasporti

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

Did you mean: tipo_trasporti
2005 Mar 08
4
change the model''s table name
...nd 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" end end in the controller I''ve got this: class TipoTrasportiController < ApplicationController model :tipo_trasporti def index myvar = TipoTrasporti.find...