Forum: Ruby on Rails select_time / select current time + 15 min

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
on 2009-06-06 13:42
(Received via mailing list)
hej there

i call select_time in my view as follows:

<%= select_time(, { :default =>, :minute_step =>
15, :time_separator => ':', :include_seconds => false } %>

now i want the dropdown boxes to be set default to the current time +
rounded up to the next 15 min. so if we've 11:38, they should show

it already shows the 11 in the hourbox but the minutes remain 00.

another problem seems to be that the browser remembers my selections
in the dropdown boxes. so on reload, the page shows the time i
previously selected instead of the current time. how can i solve that?

thanks alot for your help!
on 2009-06-06 18:47
(Received via mailing list)
*hrmpf*. once again, forget about it...

sometimes i should turn on my brain ;)


On Jun 6, 11:42 am, "removed_email_address@domain.invalid" 
This topic is locked and can not be replied to.