I am using time_select in a rails view, it looks something like this:
<div class="field">
<%= f.label :StartTime, "Start Time" %><br />
<%= f.time_select :StartTime %>
</div>
I want to set the default time to 09:00 (AM), how would I do that?
What about setting corresponding model property?
Note that in Ruby it's against widely accepted conventions to name methods in PascalCase.
StartTime
should becomestart_time
.(I took the liberty of naming the model
Session
, since you didn't specify any name).