Hi guys,
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
schedule.start_time-schedule.end_time"
How can I customize the value of the select tag?
Regards
--
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 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/14fbefb8d073590089a8937c000204ed%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment