select list from polymorphic tables

4 views
Skip to first unread message

fugee ohu

unread,
Jun 4, 2017, 1:02:30 AM6/4/17
to Ruby on Rails: Talk
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?

Hassan Schroeder

unread,
Jun 4, 2017, 10:43:13 AM6/4/17
to rubyonrails-talk
See: ActionView::Helpers::FormOptionsHelper.collection_select()

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
Reply all
Reply to author
Forward
0 new messages