Displaying 1 result from an estimated 1 matches for "pp_person_id".
2008 May 02
1
names of select elements inside a fields_for block not generated as expected
...<%= select(:pp, :role, Person::ROLE_NAMES, {:prompt => ''Role?''})
%>
</p>
<% end %>
<% end %>
<% end %>
I get the expected series of 3 <select>s, but their names are not
automatically indexed. So I get:
<select id="pp_person_id" name="pp[person_id]">
<select id="pp_role" name="pp[role] ">
Rather than this:
<select id="pp_person_id"
name="project[proj_people_attributes][1][person_id]">
<select id="pp_role"
name="project...