aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/date_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* symbolize_keys => symbolize_keys! on new hash;Vipul A M2013-04-191-1/+1
| | | | "There're" => There are for better readability
* document setting custom datetime attribute for time_tag helperNihad Abbasov2013-02-221-0/+2
|
* fix time_tag helper and update tests to not rely on dynamically generated valuesNihad Abbasov2013-02-221-1/+1
| | | | | | | Before `time_tag Date.today` will return `<time datetime="2013-02-14T00:00:00+00:00">February 14, 2013</time>`. This commit fixes time_tag helper to use RFC-3339 full-date format (Y-m-d) in datetime attribute.
* Correct bullet content line wrappingTim "Roger" Harvey2013-02-121-1/+1
| | | | | | The `:prefix` bullet content was not properly wrapping, dropping to the following line because the additional content was not indented properly. With this change, it will now display properly the way `:discard_type` does.
* Missing or unneeded require extract_optionsAkira Matsuda2013-02-011-0/+1
|
* Merge remote-tracking branch 'docrails/master'Xavier Noria2013-01-261-0/+24
|\ | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb guides/code/getting_started/app/controllers/comments_controller.rb
| * generic pass before merging docrailsXavier Noria2013-01-261-142/+18
| |
| * repeating documentation for date and time form helpersThiago Pinto2013-01-171-0/+148
| |
* | Don't change the original i18n dataChris McGrath2013-01-171-1/+1
| |
* | Remove i18n symbol dependencyChris McGrath2013-01-171-0/+1
| | | | | | | | | | | | | | | | | | date.order is the only key in rails i18n that is required to be a symbol. This patch allows for symbols or strings which means: * No requirement for symbol type in .yml files. A future YAML.safe_load wouldn't need to load symbols * Rails could actually use json rather than yml as the backend
* | Rename :value option to :selected, in line with other select helpersColin Burn-Murdoch2013-01-141-0/+5
|/ | | | | Add tests for time & datetime. Add documentation.
* Cleans documentation from Helpers [ci skip]Alvaro Pereyra2012-12-011-2/+0
|
* Avoid using Integer#/, as it is redefined by the 'mathn' stdlibMarc-Andre Lafortune2012-11-141-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-031-94/+94
|\ | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb activerecord/lib/active_record/attribute_methods.rb guides/source/working_with_javascript_in_rails.md
| * Hash Syntax to 1.9 related changesAvnerCohen2012-10-291-94/+94
| |
* | Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-1/+1
|/
* Add i18n scope to disance_of_time_in_words.Steve Klabnik2012-10-191-1/+5
| | | | This fixes #733.
* Extend date_select helper functionality.Pavel Nikitin2012-10-181-0/+3
|
* Refactor some date helpers to use merge!Carlos Antonio da Silva2012-09-081-5/+9
| | | | Also just set the hash value instead of merging when it's only one key.
* correct handling of date selects when using both disabled and discard optionsVasiliy Ermolovich2012-08-251-2/+5
| | | | | | | | | | | | we should take disabled option not only from `html_options` hash but from `options` hash too like `build_select` method does it. So datetime_select("post", "updated_at", { :discard_minute => true }, { :disabled => true }) datetime_select("post", "updated_at", :discard_minute => true , :disabled => true) both these variants work now closes #7431
* copy edit the time_ago_in_words helper docsVijay Dev2012-08-231-4/+4
|
* Extended documentation for `time_ago_in_words` helperJay Hayes2012-08-201-0/+7
|
* Add support for start_hour and end_hour options in select_hour helperEvan Tann2012-08-131-1/+11
| | | | Updated documentation to demonstrate start_hour and end_hour options
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-26/+0
|
* Change unless + else into if + elseShaliko Usubov2012-05-061-3/+3
|
* distance_of_time_in_words: Add/tweak comments to understand time intervals ↵Elliot Winkler2012-04-301-7/+12
| | | | better
* distance_of_time_in_words: 45-60 days is about 2 months, not about 1 monthElliot Winkler2012-04-301-2/+3
|
* Merge pull request #3726 from JanDupal/fix-date-helper-hiddenJosé Valim2012-04-301-0/+2
|\ | | | | fix Helpers::DateHelper with :use_hidden - hide separators
| * fix Helpers::DateHelper with :use_hidden - hide separatorsJan Dupal2011-11-221-0/+2
| |
* | Replace boolean argument with an options hash.Dmitriy Kiriyenko2012-04-301-27/+33
| | | | | | | | | | | | | | | | This replaces `include_seconds` argument with an option key `include_seconds => true` in options hash. Also `time_ago_in_words` now passes options hash, including a `locale` key, which makes in compatible with `distance_of_time_in_words`.
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-04-251-0/+3
|\ \
| * | Add distance_of_time_in_words example for secondsAlexey Vakhov2012-04-221-0/+3
| | |
* | | Use leap years trick in distance_of_time_in_words only for distances between ↵Alexey Vakhov2012-04-241-12/+16
| | | | | | | | | | | | real date points
* | | fixed non matching documentation behaviour with method semantics on ↵Marcelo Casiraghi2012-04-241-1/+1
| | | | | | | | | | | | distance_of_time_in_words
* | | Distance of time in words should work correct if from time > to_timeAlexey Vakhov2012-04-241-2/+3
|/ /
* | avoid autolinking by rdoc [ci skip]Vijay Dev2012-04-121-2/+2
| |
* | datetime_select should work with -/+ infinity datesJoe Van Dyk2012-03-281-1/+1
| |
* | apply form_for namespace option to date_selectSergey Nartimov2012-03-261-1/+4
| |
* | Remove code duplicationRafael Mendonça França2012-03-191-11/+11
| |
* | Fixes issue #5222: DateTimeSelector builds invalid dates on leap day when ↵Jey Balachandran2012-03-181-6/+6
| | | | | | | | discarding both day and month.
* | time_tag support for blocksAntonio Tapiador del Dujo2012-03-181-2/+7
| |
* | tiny refactoringVasiliy Ermolovich2012-01-291-12/+6
| | | | | | | | | | use :default option with translate method instead of condition simplify separator method
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-261-0/+24
|\ \
| * | Documented the :use_two_digit_numbers optionLennart Fridén2012-01-221-0/+24
| | |
* | | Merge pull request #4641 from rafaelfranca/date_select-fix-3-2José Valim2012-01-241-3/+3
| | | | | | | | | | | | date_select fixes [3-2-stable]
* | | Raise exception when date.order includes invalid elementsIndrek Juhkam2012-01-221-1/+9
|/ /
* | Do not need of ActionView::Helpers scope since we are insideRafael Mendonça França2012-01-171-3/+3
| | | | | | | | ActionView::Helpers
* | Extract DatetimeSelectRafael Mendonça França2012-01-171-53/+1
| |
* | Extract TimeSelectRafael Mendonça França2012-01-171-5/+1
| |
* | Extract DateSelectRafael Mendonça França2012-01-171-5/+1
| |