On Oct 14, 6:50 pm, David <[email protected]> wrote:
>
> Can someone please help me come up with the code to make this drop
> down box dynamically populated from the vendor table? I want the drop
> down box to contain the vendor.name and also have the id each of the
> vendors.
>
> Any help in the right direction would be greatly appreciated.

See http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html
or http://guides.rubyonrails.org/form_helpers.html#making-select-boxes-with-ease

Fred

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to