Displaying 1 result from an estimated 1 matches for "schedule_projects".
2007 Apr 08
0
select html for habtm
How does one use a <select> for a habtm field? I''m having trouble
getting it to work.
Here''s my html:
<div>
<p><label for="projects">Project</label><br/>
<select id="schedule_projects" name="schedule[project_ids][]"
multiple="multiple" size="10">
<%=
options_from_collection_for_select(@all_projects, :id, :name,
@selected_projects) %>
</select>
</p>
</div>
And my controller:
def edit
@schedule =...