simple form collection value

15 views
Skip to first unread message

Rafael Soares

unread,
May 26, 2016, 7:36:55 AM5/26/16
to rubyonra...@googlegroups.com
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/.
Reply all
Reply to author
Forward
0 new messages