Displaying 1 result from an estimated 1 matches for "discscontroller".
2008 Jul 30
4
AssociationTypeMismatch: Genre expected, got String
...compact disc:
<p>
<b>Genre</b><br />
<%= f.select :genre, Genre.find(:all).collect{|p| [p.name, p.id]},
:selected => @compact_disc.genre.id %>
</p>
But when submitting the form, I get the following error:
ActiveRecord::AssociationTypeMismatch in Compact discsController#update
Genre expected, got String
What''s happening?! Did I miss anything?
Thanks a lot for help
Josh
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on R...