diff options
author | Evan Farrar <evanfarrar@gmail.com> | 2011-05-29 22:06:15 -0400 |
---|---|---|
committer | Evan Farrar <evanfarrar@gmail.com> | 2011-05-29 22:08:41 -0400 |
commit | 91b19186f7161bc2114613b15460fb29d632aff7 (patch) | |
tree | 2d85f4c726e9c363c83dcdb8c7cb096e8780aeb6 /railties/guides/source/form_helpers.textile | |
parent | ace750871527a54bab434aaf31b1e7d80f25aaea (diff) | |
download | rails-91b19186f7161bc2114613b15460fb29d632aff7.tar.gz rails-91b19186f7161bc2114613b15460fb29d632aff7.tar.bz2 rails-91b19186f7161bc2114613b15460fb29d632aff7.zip |
Spelling corrections in the guides.
Diffstat (limited to 'railties/guides/source/form_helpers.textile')
-rw-r--r-- | railties/guides/source/form_helpers.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile index 4134c9f8ed..c7e45c0a23 100644 --- a/railties/guides/source/form_helpers.textile +++ b/railties/guides/source/form_helpers.textile @@ -545,7 +545,7 @@ NOTE: In many cases the built-in date pickers are clumsy as they do not aid the h4. Individual Components -Occasionally you need to display just a single date component such as a year or a month. Rails provides a series of helpers for this, one for each component +select_year+, +select_month+, +select_day+, +select_hour+, +select_minute+, +select_second+. These helpers are fairly straightforward. By default they will generate an input field named after the time component (for example "year" for +select_year+, "month" for +select_month+ etc.) although this can be overriden with the +:field_name+ option. The +:prefix+ option works in the same way that it does for +select_date+ and +select_time+ and has the same default value. +Occasionally you need to display just a single date component such as a year or a month. Rails provides a series of helpers for this, one for each component +select_year+, +select_month+, +select_day+, +select_hour+, +select_minute+, +select_second+. These helpers are fairly straightforward. By default they will generate an input field named after the time component (for example "year" for +select_year+, "month" for +select_month+ etc.) although this can be overridden with the +:field_name+ option. The +:prefix+ option works in the same way that it does for +select_date+ and +select_time+ and has the same default value. The first parameter specifies which value should be selected and can either be an instance of a Date, Time or DateTime, in which case the relevant component will be extracted, or a numerical value. For example |