aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a new line after the textarea opening tag.Rafael Mendonça França2012-02-271-36/+36
| | | | Closes #393
* Fix collection_check_boxes and collection_radio_buttons when using localRafael Mendonça França2012-02-261-0/+38
| | | | variables in the form builder
* Move all the helpers to protected sectionRafael Mendonça França2012-02-261-31/+31
|
* uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-241-69/+66
| | | | the update action of resources
* correct fetching :name option in form fieldsVasiliy Ermolovich2012-02-231-0/+5
|
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-0/+9
| | | | | | | | | | | | | | | | 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.
* Add HTML5 input[type="date"] helperOlek Janiszewski2012-02-121-0/+26
|
* Replicate :form html5 attribute to hidden field for check_boxCarlos Antonio da Silva2012-02-021-3/+10
| | | | | When the new html5 attribute :form is given to the check_box helper, it should be replicated to the hidden field as well. Closes #4848
* check_box with nil as unchecked value should be HTML safeRafael Mendonça França2012-01-311-0/+4
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Do not generate label for attribute when giving nilCarlos Antonio da Silva2012-01-261-0/+4
|
* Raise a better error if anyone wants to create your own ↵Rafael Mendonça França2012-01-231-0/+8
| | | | ActionView::Helpers::Tags::Base child and do not implement the render method
* Adding one test case for label with blockRafael Mendonça França2012-01-171-0/+4
|
* use stub instead of redefining method to suppress warningsSergey Nartimov2012-01-071-2/+2
|
* don't set the hidden checkbox value if it's nilDamien Mathieu2012-01-061-0/+8
|
* Do not stub id hereSantiago Pastorino2012-01-061-6/+6
|
* Revert "Revert "More 1.9 way""Santiago Pastorino2012-01-061-0/+2
| | | | | Fixed failing tests This reverts commit 8350ce97f2065eed9638c595d3938a573d6fa343.
* check_box helper with :disabled => true generates disabled hidden field. ↵Tadas Tamošauskas2012-01-051-4/+3
| | | | fixes #1953
* Make sure that check_box helper return a safe bufferRafael Mendonça França2012-01-041-0/+1
|
* Add button_tag support to ActionView::Helpers::FormBuilder.Will Farrington2011-12-111-1/+3
| | | | | | | | | | 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-11/+11
|
* test helpers in erb using erblest2011-11-301-3/+2
|
* add namespace options to form_forVasiliy Ermolovich2011-11-271-0/+76
| | | | | 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-0/+7
|
* Rely on a public contract between railties instead of accessing railtie ↵José Valim2011-11-231-1/+1
| | | | methods directly.
* Fix impractical I18n lookup in nested fields_forAlexander Uvarov2011-11-171-0/+46
|
* add tests for the case where size is explicitly passed to number_field helperVijay Dev2011-11-041-0/+4
|
* Remove 'size' attribute from number_field form helper fixes #3454Waseem Ahmad2011-11-041-2/+2
| | | | | f.number_field generates <input type="number", size="30"../> which is invalid HTML5. See: http://dev.w3.org/html5/spec/Overview.html#number-state
* No need to use </form> here. It's already in whole_form blockArun Agrawal2011-09-101-2/+1
|
* Rename new method to_path to to_partial_path to avoid conflicts with ↵José Valim2011-08-011-1/+1
| | | | File#to_path and similar.
* Merge pull request #2034 from Casecommons/to_pathJosé Valim2011-07-281-0/+11
|\ | | | | Allow ActiveModel-compatible instances to define their own partial paths
| * Let ActiveModel instances define partial paths.Grant Hutchins & Peter Jaros2011-07-251-0/+11
| | | | | | | | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
* | added test case for fix to issue #2094Dan Gebhardt2011-07-161-0/+17
|/
* Revert "Add method fields_for_with_index to FormHelper"José Valim2011-07-011-125/+0
| | | | | | | | This reverts commit 7c562d5e460d97b18e4f3367b3cfb13401732920. Conflicts: actionpack/lib/action_view/helpers/form_helper.rb
* Use real hash model in nested fields_for with hash model testSam Pohlenz2011-06-221-4/+2
|
* Test for extractable_options? within nested fields_for.Sam Pohlenz2011-06-201-0/+18
| | | | | This fixes an error when a record object that is a subclass of Hash is passed to fields_for, which is incorrectly interpreted as field options.
* There are no snowmen hereDavid Lee2011-06-111-2/+2
|
* Added missing assert to test checking form with namespaced isolated model ↵Piotr Sarnacki2011-06-071-5/+5
| | | | and fixed helpers to work correctly in such case
* Add method fields_for_with_index to FormHelperJorge Bejar2011-05-211-0/+125
|
* Refactor fields_for to make the api more clear, and fix usage with non ↵Carlos Antonio da Silva2011-05-141-0/+14
| | | | nested attributes and without object
* Allow a label with the value option to have value-specific translations.Jason Garber2011-04-271-1/+11
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
| | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Allow FormHelper#form_for to specify the :method as a direct option instead ↵David Heinemeier Hansson2011-03-261-2/+19
| | | | of through the :html hash [DHH]
* Add an option to FormBuilder to omit hidden field with idAlexander Uvarov2011-03-041-0/+135
| | | | | | [#4551 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove duplicated action pack tests added to fix issue with fields_for, ↵Carlos Antonio da Silva2011-02-121-42/+0
| | | | | | nested attributes and erb Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add tests showing the LH issue #6381: fields_for with inline blocks and ↵Carlos Antonio da Silva2011-02-081-1/+85
| | | | | | nested attributes already persisted Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* removing generation of id in submit helperFranco Brusatti2011-02-031-6/+6
| | | | | | [#6369 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Revert "Remove deprecated form_for with strings or symbols"José Valim2010-11-181-0/+33
| | | | | | | | | | | | | | | | This code was not deprecated. What was deprecated is the following: form_for(:foo, @foo) Which now should be rewritten as: form_for(@foo, :as => :foo) The following format is valid: form_for(:foo) This reverts commit be797750e6ce866ea08307f63bf35304a965c8d4.
* Remove deprecated form_for with strings or symbolsLeonardo Capillera2010-11-181-33/+0
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>