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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMay 26, '16 at 11:36a
activeMay 26, '16 at 11:36a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Rafael Soares: 1 post

People

Translate

site design / logo © 2021 Grokbase