search for: bookingscontrol

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

2006 Jul 28
3
Forms: handle foreign keys (AssociationTypeMismatch)
...y: <%= collection_select(:booking, :country, @countries, :id, :name, :include_blank => true) %> <%= end_form_tag %> So far, so good, the countries are well displayed in a select box. But when I submit the form, I get the following error: ActiveRecord::AssociationTypeMismatch in BookingsController#new Country expected, got String RAILS_ROOT: /Users/Josh/Webwork/psyguideorg/public/../config/.. Application Trace | Framework Trace | Full Trace /Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associations/association...