Displaying 1 result from an estimated 1 matches for "project_person".
2008 May 02
1
names of select elements inside a fields_for block not generated as expected
...the ''complex forms 1'' railscast
(http://railscasts.com/episodes/73) and having trouble. The view is
projects/new. I''m trying to add some project_people to the form w/code
like so:
<% form_for(@project) do |f| %>
[project stuff here]
<% for pp in @project.project_person %>
<% fields_for ''project[proj_people_attributes][]'', pp do |pp_form|
%>
<p>
Person:
<%= collection_select(:pp, :person_id, Person.get_list, :id,
:nom, {:prompt => ''Person?''}) %>
Role:
<%= sele...