ActionView::Helpers::DateHelper

select_hour

Description

select_hour(datetime, options = {})


Returns a select tag with options for each of the hours 0 through 23 with the current hour selected. The hour can also be substituted for a hour number. Override the field name using the :field_name option, ‘hour’ by default.

Examples:

No examples

User Contributed Notes add

No comments