search for: tipotrasporticontrol

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

2005 Mar 08
4
change the model''s table name
...rasporti.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 error: ActiveRecord::StatementInvalid in Tipo_trasporti#index ERROR: relation "tipo_trasp...