skunkwerk
unread,Jul 18, 2009, 1:59:02 PM7/18/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Hi,
I have a 'person' model that belongs_to a 'group' model. I used
scaffolding to generate the form code for adding a new person, but I
want a select drop-down for selecting which group to assign a person
to. I looked at the rails form helpers guide, and tried a few
different things in the template, like:
<%= f.select :vendor, @vendor %>
but i'm getting errors...
what's the proper way to do this? is there any controller code
necessary?
thanks!