aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Properly deprecate the block argument in AV FormBuilderCarlos Antonio da Silva2012-03-231-3/+9
| | | | | | | | | Commit 56089ca986c767763f29159c8de0aa1ebabfd4d2 introduced a backward incompatible change by changing the method signature of the FormBuilder. This brings back the same method signature warning in case someone gives a block to the builder. More info: https://github.com/rails/rails/commit/56089ca986c767763f29159c8de0aa1ebabfd4d2#commitcomment-1116166
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-03-131-66/+138
|\
| * Revised explanation of fields_for usage.Mark Thomson2012-03-111-10/+39
| | | | | | | | Minor tweak to previous comments on form_for and form_helper.rb preamble
| * Added clarification to description of how initial form values are derived.Mark Thomson2012-03-101-1/+2
| |
| * Revised explanation of form_for usageMark Thomson2012-03-101-53/+84
| |
| * Additional preamble comments in form_helper.rb.Mark Thomson2012-03-081-7/+18
| |
| * Small correction to the description of the role of the form builder.Mark Thomson2012-03-081-1/+1
| | | | | | | | (endpoints are generated by form_for without reference to the form builder)
* | Fix unintended removal of 'cols' from a text_area example.Philip Arndt2012-03-121-1/+1
| |
* | Fixes #5324 by removing default size options from input:text and default ↵Philip Arndt2012-03-101-15/+15
|/ | | | cols and rows options from textarea.
* simplify namespace assignment in fields_forSergey Nartimov2012-03-021-1/+1
|
* uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-241-1/+1
| | | | the update action of resources
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-2/+2
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-02-181-5/+5
|\
| * Update f.button docs to reflect real label implementationCarlos Antonio da Silva2012-02-141-5/+5
| |
* | Add HTML5 input[type="date"] helperOlek Janiszewski2012-02-121-0/+18
|/
* Refactor FormBuilder arguments and default configCarlos Antonio da Silva2012-01-181-10/+7
| | | | | | | | | | * Do not reopen AV::Base to define default form builder Inside the load hook we are already in AV::Base context. * Do not pass the given block to the form builder The block is evaluated in fields_for context using capture, with the builder as argument. This means we do not need to give the block to the FormBuilder itself.
* Use block syntax to avoid code duplicationRafael Mendonça França2012-01-171-3/+3
|
* Do not need of ActionView::Helpers scope since we are insideRafael Mendonça França2012-01-171-14/+14
| | | | ActionView::Helpers
* Remove unused codeRafael Mendonça França2012-01-171-39/+0
|
* CleanupRafael Mendonça França2012-01-171-72/+1
|
* Remove unused codeRafael Mendonça França2012-01-171-31/+0
|
* Extract RangeFieldRafael Mendonça França2012-01-171-11/+1
|
* Extract NumberFieldRafael Mendonça França2012-01-171-1/+1
|
* Extract EmailFieldRafael Mendonça França2012-01-171-1/+1
|
* Extract UrlFieldRafael Mendonça França2012-01-171-1/+1
|
* Extract TelFieldRafael Mendonça França2012-01-171-1/+1
|
* Extract SearchFieldRafael Mendonça França2012-01-171-14/+1
|
* Extract RadioButtonRafael Mendonça França2012-01-171-21/+1
|
* Extract CheckBoxRafael Mendonça França2012-01-171-40/+1
|
* Extract TextAreaRafael Mendonça França2012-01-171-13/+1
|
* Extract FileFieldRafael Mendonça França2012-01-171-1/+1
|
* Extract HiddenFieldRafael Mendonça França2012-01-171-1/+1
|
* Extract PasswordFieldRafael Mendonça França2012-01-171-1/+1
|
* Rename classesRafael Mendonça França2012-01-171-2/+2
|
* Extract TextFieldTagRafael Mendonça França2012-01-171-1/+1
|
* Extract LabelTagRafael Mendonça França2012-01-171-54/+2
|
* Do not check if record is an Array twiceRafael Mendonça França2012-01-121-4/+3
|
* don't set the hidden checkbox value if it's nilDamien Mathieu2012-01-061-1/+1
|
* check_box helper with :disabled => true generates disabled hidden field. ↵Tadas Tamošauskas2012-01-051-1/+1
| | | | fixes #1953
* No need of html_safe hereRafael Mendonça França2012-01-041-1/+1
| | | | | tag helper always return a html safe string and concat two html safe strings always return a html safe string
* fix use of FormBuilder.field_helpersSergey Nartimov2012-01-021-1/+1
| | | | it is array of symbols now
* removes the compatibility method Module#instance_method_namesXavier Noria2011-12-251-2/+1
|
* fix adding field_with_errors to date selects, closes #3487Vasiliy Ermolovich2011-12-201-1/+2
|
* Add button_tag support to ActionView::Helpers::FormBuilder.Will Farrington2011-12-111-0/+33
| | | | | | | | | | This support is near-identical to the existing submit_tag support. Example: <%= form_for @post do |f| %> <%= f.button %> <% end %>
* form_for with +:as+ option uses "action_as" as css class and idVasiliy Ermolovich2011-12-041-2/+2
|
* minor typo fixVijay Dev2011-12-011-1/+1
|
* add namespace options to form_forVasiliy Ermolovich2011-11-271-2/+9
| | | | | You can provide a namespace for your form to ensure uniqueness of id attributes on form elements. The namespace attribute will be prefixed with underscore on the generate HTML id
* fix label with block in erblest2011-11-271-2/+2
|
* Fix impractical I18n lookup in nested fields_forAlexander Uvarov2011-11-171-1/+9
|
* Docs cosmetic fixes in Action View form_helper.rbAlexey Vakhov2011-11-061-2/+2
|