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 how to save the
combobox''s content. it works for a 1:n relation because i just have to
save the task which has a projekt_id but with a m:n relations it is
different.
thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---