Displaying 1 result from an estimated 1 matches for "time_choices".
2006 Jun 14
2
setting selected option in select
...m", "1:15" ],
[ "1:30am", "1:30" ],
.
.
.
.
[ "11:00pm", "23:00" ],
[ "11:15pm", "23:15" ],
[ "11:30pm", "23:30" ],
[ "11:45pm", "23:45" ]
].freeze
In my controller I set
<%time_choices = Storeday::TIME_TYPES%>
Then I have a select helper
<%=select("storeday", "open_time", time_choices, options =
{:selected => "1:00"})%>
Using this code I can''t get the selected to default to the time I want.
Any suggestions??
Thanks
A...