ActionView::Helpers::DateHelper

select_day

Description

select_day(date, options = {})


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

Examples:
  1. <%= select_day( (@post.day || Date.today), :field_name => 'post_day') %>

User Contributed Notes add

No comments