search for: relation_nam

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

Did you mean: relation_name
2008 Feb 20
0
HABTM problem
...ids and and id of person should be stored in people_relation table. Here is the form for person. <%form_for (:person,:url=>{:action =>"create"},:html => { :multipart => true })do |p|%> <%= p.collection_select :relation_ids, Relation.find(:all, :order => ''relation_name ASC''), :id, :relation_name, { :selected => p.relation_ids }, { :multiple => true, :name => ''p[relation_ids][]'' } -%></td> <%end%> I am getting error undefined method name relation_ids how should i write the above piece of code so that the select...