Quantcast
Channel: Rails select helper - set default? - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>