search for: tipo_trasporto

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

Did you mean: tipo_trasporti
2005 Mar 08
4
change the model''s table name
...tError 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_all render_text "ok" end end that gives this erro...