I have a select tag in which I need to display schedule values.
Basically I need to do something like this:
<%= form.association :schedule, collection: @schedules %>
The problem I'm having is that the select value needs to be customized.
I need it to display the value "schedule.court.name - schedule.date
How can I customize the value of the select tag?
Posted via http://www.ruby-forum.com/.
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 firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/14fbefb8d073590089a8937c000204ed%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.