Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make select_year work with include_position: true option, fix #25267 | Marek | 2016-06-05 | 1 | -0/+7 |
| | |||||
* | date_select helper with_css_classes option also accept a hash | neumayr | 2016-04-05 | 1 | -0/+404 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | `date_select` helper `:with_css_classes` option now accepts a hash of strings for `:year`, `:month`, `:day`, `:hour`, `:minute`, `:second` that will extend the select type with the given css class value. ```erb <%= f.date_select :birthday, with_css_classes: { month: "my-month", year: "my-year" } %> ``` ```html <select id="user_birthday_3i" name="user[birthday(3i)]">…</select> <select id="user_birthday_2i" name="user[birthday(2i)]" class="my-month">…</select> <select id="user_birthday_1i" name="user[birthday(1i)]" class="my-year">…</select> ``` Optional, add global `html_options` to modify every select tag in the set. ```erb <%= f.date_select :birthday, with_css_classes: { month: "my-month", year: "my-year" }, { class: "my-date optional" } %> ``` Supported DateHelper methods: `select_day`, `select_month`, `select_year`, `select_hour`, `select_minute`, `select_second`, `select_datetime`, `select_time`, `time_select`, `date_select` and `datetime_select`. `:with_css_classes` option was added to the `date_select` with #7975. | ||||
* | html_safe is not supposed to be public API for AV. This change removes usage ↵ | Vipul A M | 2016-01-20 | 1 | -1/+1 |
| | | | | | | of html_safe in favour of raw() in AV helpers. Also changed usage of html_safe to make use of raw() instead so that the intended behaviour is verified with raw() | ||||
* | deletes commented code introduced in db045db (initial commit) | Tony Ta | 2015-12-15 | 1 | -17/+0 |
| | |||||
* | deletes commented code introduced in 4673c47d | Tony Ta | 2015-12-15 | 1 | -5/+0 |
| | |||||
* | making selected value to accept Hash like the default option. E.g. selected: ↵ | Lecky Lao | 2015-10-29 | 1 | -0/+20 |
| | | | | | | | | {day: params[:day].to_i, month: params[:month].to_id} Adds in test test_date_select_with_selected_in_hash and change log fixes typo in CHANGELOG | ||||
* | :put_litter_in_its_place: Unused methods | Akira Matsuda | 2015-04-25 | 1 | -8/+0 |
| | |||||
* | Silence warning from requiring mathn | Prem Sichanugrist | 2015-04-22 | 1 | -1/+1 |
| | | | | | | | | | Running Action View test case currently printing out this warning: lib/mathn.rb is deprecated This should silence the warning since we really want to require this file in this test. | ||||
* | Use directly TZInfo::Timezone without proxy | brainopia | 2015-01-04 | 1 | -1/+1 |
| | | | | | Since real timezone is loaded anyway in `#utc_offset` which is called during `#create` | ||||
* | Duplicated Hash key :prompt | Akira Matsuda | 2014-11-19 | 1 | -1/+1 |
| | |||||
* | All these tests are passing now | Rafael Mendonça França | 2014-07-15 | 1 | -4/+0 |
| | |||||
* | Change date helper tests to expect attributes with double quoted strings. | Timm | 2014-06-16 | 1 | -14/+15 |
| | |||||
* | Added related Nokogiri issue link to tests that fail with unknown encoding ↵ | Timm | 2014-06-16 | 1 | -4/+4 |
| | | | | ASCII-8BIT. | ||||
* | Marked some tests as pending in date_helper_test.rb. | Timm | 2014-06-15 | 1 | -0/+4 |
| | |||||
* | Fix date_select option overwriting html classes | Izumi Wong-Horiuchi | 2014-03-24 | 1 | -0/+16 |
| | | | | | with_css_classes: true option overwrites other html classes. Concatenate day month and year classes rather than overwriting. | ||||
* | implements new option :month_format_string for date select helpers [Closes ↵ | Xavier Noria | 2014-02-15 | 1 | -0/+10 |
| | | | | #13618] | ||||
* | Remove privatizing of Fixnum#/ from assert_distance_of_time_in_words | Alex Tambellini | 2013-08-05 | 1 | -5/+7 |
| | | | | | | | | MRI reimplemented Date in C so it doesn't hit this division anymore while JRuby still uses the old stdlib implementation of Date so it will always hit this. With this change the actionview date_helper_test.rb tests should pass on JRuby. | ||||
* | Move template tests from actionpack to actionview | Piotr Sarnacki | 2013-06-20 | 1 | -0/+3199 |