public Method

InstanceTag.to_date_tag

There's no documentation for this item.

Source Code

# File action_view/helpers/form_helper.rb, line 534
def to_date_tag()
  defaults = DEFAULT_DATE_OPTIONS.dup
  date     = value(object) || Date.today
  options  = Proc.new { |position| defaults.merge(:prefix => "#{@object_name}[#{@method_name}(#{position}i)]") }
  html_day_select(date, options.call(3)) +
  html_month_select(date, options.call(2)) +
  html_year_select(date, options.call(1))
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.