Displaying 1 result from an estimated 1 matches for "originating_memb".
2007 Mar 20
2
collection_select - why doesn't it work?
...ls expects a select list with a name
"member[origin_country_id]" or something like that?
My models look like that:
class Member < ActiveRecord::Base
belongs_to :origin_country,
:class_name => ''Country''
end
class Country < ActiveRecord::Base
has_many :originating_members,
:class_name => ''Member''
end
And the foreign key column in the members table is called "country_id".
So where''s the mistake? Thanks a lot for help. :-)
Joshua
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~-...