aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/tags
Commit message (Collapse)AuthorAgeFilesLines
* Use if/elseRafael Mendonça França2014-06-301-2/+5
| | | | | Since we are using both branches of the code is preferable to use if/else over the early return.
* Add String support for min/max attributes on DatetimeFieldTodd Bealmear2014-06-301-2/+7
|
* In actionview, eliminate calls to tag that use html_safe parameter values. ↵Paul Grayson2014-06-131-1/+0
| | | | This is generally unnecessary, since tag handles string quoting, except in one case (utf8_enforcer_tag) where we want to specify the encoding ourselves.
* Include label value in i18n attribute lookupJoshua Cody2014-05-061-2/+2
| | | | | | | | | | | | | | | | | | | | | Previously, only the object and method name from the label tag were used when looking up the translation for a label. If a value is given for the label, this ought to be additionally used. The following: # form.html.erb <%= form_for @post do |f| %> <%= f.label :type, value: "long" %> <% end %> # en.yml en: activerecord: attributes: post/long: "Long-form Post" Used to simply return "long", but now it will return "Long-form Post".
* `collection_check_boxes` respects `:index` option for the hidden filed name.Vasiliy Ermolovich2014-04-141-4/+13
| | | | closes #14147
* CollectionHelpers now accepts a readonly optionMauro George2014-04-121-1/+1
|
* Merge pull request #12662 from nashby/include-hidden-collectionRafael Mendonça França2014-03-151-3/+7
|\ | | | | | | | | | | | | | | add include_hidden option to collection_check_boxes helper Conflicts: actionview/CHANGELOG.md actionview/test/template/form_collections_helper_test.rb
| * add include_hidden option to collection_check_boxes helperVasiliy Ermolovich2013-10-271-3/+7
| |
* | Fix ActionView label translation for more than 10 nested elementsVladimir Krylov2014-02-241-1/+1
| |
* | Label only accepts `:index` and `:namespace` attributes from the inputAndriel Nuernberg2013-12-052-2/+1
|/
* Use the given name in html_options for the hidden field in ↵Angel N. Sciortino2013-09-241-1/+2
| | | | collection_check_boxes
* Fix some edge cases for AV `select` helper with `:selected` optionBogdan Gusiev2013-09-231-1/+2
|
* Ability to pass block to AV#select helperBogdan Gusiev2013-09-231-1/+2
| | | | | | | | Example: = select(report, "campaign_ids") do - available_campaigns.each do |c| %option{:data => {:tags => c.tags.to_json}, :value => c.id}= c.name
* handle `:namespace` form option in collection labelsVasiliy Ermolovich2013-09-222-1/+3
|
* text_area should handle nil value option like text_fieldJoel Cogen2013-07-242-3/+3
|
* Clean the code a bitSantiago Pastorino2013-06-292-2/+2
|
* fetch value(s) from stringified optionsJon Rowe2013-06-292-2/+2
|
* Move actionpack/lib/action_view* into actionview/libPiotr Sarnacki2013-06-2033-0/+958