Displaying 1 result from an estimated 1 matches for "relation_id".
Did you mean:
relation_ids
2008 Feb 20
0
HABTM problem
...Person.create(params[:person]) in controller
the relation 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...