aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move actionpack/lib/action_view* into actionview/libPiotr Sarnacki2013-06-201-147/+0
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-04-111-2/+2
|\ | | | | | | | | Conflicts: guides/source/action_mailer_basics.md
| * mark ActionView::Helpers::Tags as :nodoc: [ci skip]Francesco Rodriguez2013-04-041-2/+2
| |
* | Fix explicit names on multiple file fieldsRyan McGeary2013-04-051-8/+7
|/ | | | | | | | If a file field tag is passed the multiple option, it is turned into an array field (appending "[]"), but if the file field is passed an explicit name as an option, leave the name alone (do not append "[]"). Fixes #9830
* Fix incorrectly appended square brackets to a multiple select boxOlek Janiszewski2013-03-081-1/+1
| | | | | | | | | | | | | | If an explicit name has been given and it already ends with "[]" Before: select(:category, [], {}, multiple: true, name: "post[category][]") # => <select name="post[category][][]" ...> After: select(:category, [], {}, multiple: true, name: "post[category][]") # => <select name="post[category][]" ...>
* Support :multiple option on input tags with :indexDaniel Fox, Grant Hutchins & Trace Wax2012-11-021-5/+3
| | | | | When you have an explicit index set, then when you build an input tag with :multiple => true, it doesn't add [] to the end of its name, although it should.
* Fixed bug creating invalid HTML in select optionsRusty Geldmacher2012-07-101-2/+2
| | | | | | When a select tag is created for a field with errors, then the inserted options will errantly have a <div class="field_with_errors"> wrapping them.
* Make :prompt work as documentedRafael Mendonça França2012-05-161-2/+1
|
* Do not add `:include_blank` option if prompt is presentRafael Mendonça França2012-05-131-3/+3
|
* Only set `:include_blank` if the value of this options is not presentRafael Mendonça França2012-05-131-1/+1
|
* `:include_blank` should be true if the size option is nilRafael Mendonça França2012-05-131-2/+2
|
* Always include the options :include_blank if the select has a required attributeangelo giovanni capilleri2012-05-131-0/+5
| | | | and display size 1 and not multiple attribute, Fixes #5908
* pass default value as argument to fetchSergey Nartimov2012-04-061-1/+1
|
* add 'include_hidden' option to select tag, closes #5402Vasiliy Ermolovich2012-03-131-1/+2
|
* Fixes #5324 by removing default size options from input:text and default ↵Philip Arndt2012-03-101-2/+0
| | | | cols and rows options from textarea.
* Merge branch 'master-security'Aaron Patterson2012-03-011-3/+2
|\ | | | | | | | | | | | | | | | | | | | | | | * master-security: Ensure [] respects the status of the buffer. delete vulnerable AS::SafeBuffer#[] use AS::SafeBuffer#clone_empty for flushing the output_buffer add AS::SafeBuffer#clone_empty fix output safety issue with select options Conflicts: actionpack/lib/action_view/helpers/tags/base.rb
| * fix output safety issue with select optionsSergey Nartimov2012-02-201-3/+3
| |
* | use content_tag instead stringsVasiliy Ermolovich2012-02-251-3/+4
| |
* | correct fetching :name option in form fieldsVasiliy Ermolovich2012-02-231-3/+3
|/
* Add HTML5 input[type="date"] helperOlek Janiszewski2012-02-121-1/+1
|
* Refactor value sanitization logicCarlos Antonio da Silva2012-02-021-7/+15
| | | | | | | | | | * Extract value sanitization from default name and id method and new collection helpers; * No need to sanitize value in default name and id always; * Improve value_before_type_cast to avoid concating the same method name string twice. [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor the methods to use instance variablesRafael Mendonça França2012-02-021-1/+5
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Raise a better error if anyone wants to create your own ↵Rafael Mendonça França2012-01-231-2/+3
| | | | ActionView::Helpers::Tags::Base child and do not implement the render method
* Extract input_checked? to a moduleRafael Mendonça França2012-01-171-9/+0
|
* Extract CollectionSelectRafael Mendonça França2012-01-171-0/+23
|
* Remove code duplication between CheckBox ans RadioButtonRafael Mendonça França2012-01-171-0/+9
|
* Extract RadioButtonRafael Mendonça França2012-01-171-0/+4
|
* Rename classesRafael Mendonça França2012-01-171-0/+107