Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merging in fix from #8222 | Ben Tucker | 2013-05-06 | 1 | -1/+1 |
| | |||||
* | Make distance_of_time_in_words work with DateTime offsets | Andrew White | 2012-12-04 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | Because DateTime#to_time returns self when it has a non-zero offset and subtracting two DateTime instances returns a Rational then the distance_of_time_in_words methods outputs an incorrect value. This is fixed in master because we can rely on Ruby 1.9.3's implementation of to_time but it can't be fixed on Ruby 1.8.7 as there is no way to map the DateTime to a Time with a non-zero offset. We can workaround the problem by casting to Float before doing the subtraction in the distance_of_time_in_words method. Closes #8390 | ||||
* | Make output of distance_of_time_in_words consistent | Andrew White | 2012-12-04 | 1 | -2/+2 |
| | | | | | | | | | | This commit fixes the output of distance_of_time_in_words when using integer or duration arguments. Previously a distance of more than 30 seconds would be output as 'Less than 1 minute' when using integer arguments and '1 minute' when using two Time instances more than 30 seconds apart. Cherry picked from 5fdd4cd9e47be972f146a8a17a74c8f4700e2ac0 | ||||
* | Add i18n scope to disance_of_time_in_words. | Steve Klabnik | 2012-11-26 | 1 | -3/+7 |
| | | | | This is a backport of rails/rails#7997. | ||||
* | correct handling of date selects when using both disabled and discard options | Vasiliy Ermolovich | 2012-08-25 | 1 | -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 | ||||
* | apply form_for namespace option to date_select | Sergey Nartimov | 2012-03-26 | 1 | -1/+4 |
| | |||||
* | Merge pull request #4639 from joevandyk/datetime-infinity-select-fix | Aaron Patterson | 2012-01-24 | 1 | -1/+1 |
|\ | | | | | datetime_select fix for dates of -infinity and +infinity | ||||
| * | datetime_select should work with -/+ infinity dates | Joe Van Dyk | 2012-01-24 | 1 | -1/+1 |
| | | |||||
* | | Fix date_select with discard_month and discard_year options | Rafael Mendonça França | 2012-01-24 | 1 | -2/+2 |
| | | | | | | | | Closes #4553 and #4633 | ||||
* | | Fix date_select nil and blank and order case | Indrek Juhkam | 2012-01-24 | 1 | -1/+1 |
|/ | |||||
* | fix adding field_with_errors to date selects, closes #3487 | Vasiliy Ermolovich | 2011-12-20 | 1 | -5/+9 |
| | |||||
* | fix separator insertion in date_select helper | Sergey Nartimov | 2011-12-14 | 1 | -1/+2 |
| | |||||
* | Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson] | Lennart Fridén | 2011-12-11 | 1 | -3/+6 |
| | | | | | | | | | | Added use_two_digit_numbers select_tag option for displaying months and days with leading zeros without affecting the values (useful for e.g. ISO-style dates, 2011-08-01). Signed-off-by: José Valim <jose.valim@gmail.com> Conflicts: actionpack/CHANGELOG.md | ||||
* | Fixes an issue when creating a date select with too many options. | Liborio Cannici | 2011-10-08 | 1 | -5/+10 |
| | | | | | | | | | | Inspired by dlt https://github.com/dlt/rails/commit/9e615634745dc81598e7b880d52411338d3a7a93 Closes #239. Conflicts: actionpack/CHANGELOG | ||||
* | little details seen while doing a pass through what's new in docrails | Xavier Noria | 2011-07-23 | 1 | -1/+1 |
| | |||||
* | use the doc conventions for arguments in all cases | Ray Baxter | 2011-07-20 | 1 | -3/+3 |
| | | | | | See https://github.com/lifo/docrails/commit/5c71a4e76897844ab6aeabb581549d981d9768c9#commitcomment-485675 | ||||
* | reword select_date's behaviour clearly when an incomplete options array is ↵ | Vijay Dev | 2011-07-20 | 1 | -3/+3 |
| | | | | passed | ||||
* | we're talking about days here, not hours | Ray Baxter | 2011-07-17 | 1 | -1/+1 |
| | |||||
* | wording between select_second, select_minute and | Ray Baxter | 2011-07-17 | 1 | -2/+2 |
| | | | select_hour should be consistent and correct | ||||
* | fix typo | Ray Baxter | 2011-07-17 | 1 | -1/+1 |
| | |||||
* | make documentation agree with test expectations and | Ray Baxter | 2011-07-17 | 1 | -2/+2 |
| | | | | | | behaviour See: test_select_date_with_incomplete_order in actionpack/test/template/date_helper_test.rb | ||||
* | document that second tags are also returned by default | Ray Baxter | 2011-07-16 | 1 | -1/+1 |
| | |||||
* | there is no Time.today method, use Time.now | Ray Baxter | 2011-07-16 | 1 | -2/+2 |
| | |||||
* | remove stray character | Ray Baxter | 2011-07-16 | 1 | -1/+1 |
| | |||||
* | disambiguate uses of post/POST by using "article" | Ray Baxter | 2011-07-16 | 1 | -28/+28 |
| | | | | for the related variable passed to date_select, time_select and datetime_select | ||||
* | clarify that classes that include DateHelper can | Ray Baxter | 2011-07-16 | 1 | -2/+2 |
| | | | also manipulate times | ||||
* | clarify that DateTime objects are allowed arguments | Ray Baxter | 2011-07-16 | 1 | -1/+1 |
| | | | to distance_of_time_in_words | ||||
* | use minute instead of second in description of select_minute | Ray Baxter | 2011-07-16 | 1 | -2/+2 |
| | |||||
* | show correct helper in description | Ray Baxter | 2011-07-16 | 1 | -1/+1 |
| | |||||
* | use 'hour' instead of 'minutes' and 'second' for select_hour | Ray Baxter | 2011-07-16 | 1 | -2/+2 |
| | |||||
* | Remove usage of memoizable from ActionPack. | José Valim | 2011-06-16 | 1 | -7/+6 |
| | |||||
* | Remove extra white spaces on ActionPack docs. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | |||||
* | Clean up redundant backslashes | Pirogov Evgenij | 2011-05-14 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-14 | 1 | -66/+73 |
|\ | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/date_helper.rb railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt | ||||
| * | Fix styiling issues on DateHelper docs | Sebastian Martinez | 2011-05-10 | 1 | -64/+70 |
| | | |||||
| * | Explain the implication of using :ignore_date on time_select | Aditya Sanghi | 2011-05-10 | 1 | -1/+2 |
| | | |||||
| * | Fixed typos in documentation for the date_select helper in ↵ | Philip Roberts | 2011-05-09 | 1 | -1/+1 |
| | | | | | | | | | | | | actionpack/action_view. The description for an example of the date_select method did not match the actual code example. | ||||
* | | Merge pull request #343 from asanghi/ampm | José Valim | 2011-05-07 | 1 | -4/+30 |
|\ \ | | | | | | | Allow AM/PM format in datetime selectors | ||||
| * | | DRY this baby up | Aditya Sanghi | 2011-04-29 | 1 | -23/+4 |
| | | | |||||
| * | | add more documentation; remove unused assignment | Aditya Sanghi | 2011-04-29 | 1 | -4/+14 |
| | | | |||||
| * | | Allow AM/PM in datetime selectors | Aditya Sanghi | 2011-04-29 | 1 | -0/+35 |
| |/ | |||||
* | | strip space | Aditya Sanghi | 2011-05-06 | 1 | -2/+2 |
| | | |||||
* | | Take leap years into account more seriously when calculating year distance ↵ | Aditya Sanghi | 2011-05-06 | 1 | -3/+14 |
|/ | | | | [#6074 state:resolved] | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-04-19 | 1 | -4/+6 |
|\ | | | | | | | | | | | Conflicts: railties/guides/source/ajax_on_rails.textile railties/guides/source/generators.textile | ||||
| * | Fixing more spacing inconsistencies | Matt Duncan | 2011-04-15 | 1 | -1/+1 |
| | | |||||
| * | Days are never approximated using 'about' | Matt Duncan | 2011-04-15 | 1 | -1/+1 |
| | | |||||
| * | Making example result match actual result | Matt Duncan | 2011-04-15 | 1 | -1/+1 |
| | | |||||
| * | Including actual usage in example | Matt Duncan | 2011-04-15 | 1 | -1/+3 |
| | | |||||
* | | Aligning comments | Matt Duncan | 2011-04-13 | 1 | -1/+1 |
| | | |||||
* | | Fixing distance_of_time_in_words range near 2 days | Matt Duncan | 2011-04-13 | 1 | -5/+5 |
|/ |