Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Explain the implication of using :ignore_date on time_select

  • Loading branch information...
commit a59a67d01cbae485a8b46066b8a94f11db591765 1 parent 85a40f6
@asanghi asanghi authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/lib/action_view/helpers/date_helper.rb
View
3  actionpack/lib/action_view/helpers/date_helper.rb
@@ -210,7 +210,8 @@ def date_select(object_name, method, options = {}, html_options = {})
# +object+). You can include the seconds with <tt>:include_seconds</tt>.
#
# This method will also generate 3 input hidden tags, for the actual year, month and day unless the option
- # <tt>:ignore_date</tt> is set to +true+.
+ # <tt>:ignore_date</tt> is set to +true+. If you set the <tt>:ignore_date</tt> to +true+, you must have a
+ # +date_select+ on the same method within the form otherwise an exception will be raised.
#
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
#
Please sign in to comment.
Something went wrong with that request. Please try again.