Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reword select_date's behaviour clearly when an incomplete options arr…

…ay is passed
  • Loading branch information...
commit 8a3f4c206662ba6bf31302c97f3ad28cc94aa2be 1 parent cc505e1
@vijaydev vijaydev authored fxn committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/helpers/date_helper.rb
View
6 actionpack/lib/action_view/helpers/date_helper.rb
@@ -8,7 +8,7 @@ module ActionView
module Helpers
# = Action View Date Helpers
#
- # The Date Helper primarily creates select/option tags for different kinds of dates and times or date and time
+ # The Date Helper primarily creates select/option tags for different kinds of dates and times or date and time
# elements. All of the select-type methods share a number of common options that are as follows:
#
# * <tt>:prefix</tt> - overwrites the default prefix of "date" used for the select names. So specifying "birthday"
@@ -343,8 +343,8 @@ def select_datetime(datetime = Time.current, options = {}, html_options = {})
# Returns a set of html select-tags (one for year, month, and day) pre-selected with the +date+.
# It's possible to explicitly set the order of the tags using the <tt>:order</tt> option with an array of
- # symbols <tt>:year</tt>, <tt>:month</tt> and <tt>:day</tt> in the desired order. If you do not supply a symbol
- # then all tags will be hidden.
+ # symbols <tt>:year</tt>, <tt>:month</tt> and <tt>:day</tt> in the desired order.
+ # If the array passed to the <tt>:order</tt> option does not contain all the three symbols, all tags will be hidden.
#
# 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.