Ruby on Rails Sunday, June 4, 2017

On Sat, Jun 3, 2017 at 10:02 PM, fugee ohu <fugee279@gmail.com> wrote:
> I have clubs and festivals polymorphed as venues Now I wanna create a
> dropdown list in my form Not only will I have to pass the venue_id but also
> the venue_type How am I gonna do this?

See: ActionView::Helpers::FormOptionsHelper.collection_select()

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBA_bpZNOkuu3GGczBvk%3DO2S_uUgkyTm5geRHiiqdegLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment