Displaying 1 result from an estimated 1 matches for "name_g".
Did you mean:
name_r
2007 Dec 14
0
combobox and m:n relation
Hi,
i have a project and a task. both have a m:n relation to each other. I
made a scaffolding and want to insert a combobox in the task new view
Code : ruby - fold - unfold
<label for="project_name_ger">Poject</label><br/>
<%= select "task[projects_id][]", "project_id",
Project.find(:all).collect {|c| [c.name_ger, c.id]},
:prompt => "Select a Category" %>
the code does not work. does anyone has an idea...