Quantcast
Channel: Rails select helper - set default? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Frankie Roberto for Rails select helper - set default?

This is a lot easier if you use the collection_select helper:f.collection_select :event_id, @events, :id, :nameThen to select the default option (and have that be selected on pageload), you can simply...

View Article



Rails select helper - set default?

Rails 2.3.11I did read this answer, but it's not working for me.I would like the default option for this selection box to be the event_id passed through the URL.f.select :event_id, @events, :selected...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images