- 21 11月, 2014 1 次提交
-
-
由 claudiob 提交于
The [current documentation of form_for](http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for) is incomplete: > The rightmost argument to form_for is an optional hash of options - > :url - The URL the form is to be submitted to. This may be represented in the same way as values passed to url_for or link_to. So for example you may use a named route directly. When the model is represented by a string or symbol, as in the example above, if the :url option is not specified, by default the form will be sent back to the current url (We will describe below an alternative resource-oriented usage of form_for in which the URL does not need to be specified explicitly). > :namespace - A namespace for your form to ensure uniqueness of id attributes on form elements. The namespace attribute will be prefixed with underscore on the generated HTML id. > :html - Optional HTML attributes for the form tag. This commit completes the documentation by specifying that: * `:authenticity_token` is also a valid option (as [documented here](https://github.com/rails/rails/blob/b0f44c9ff0be84ebc42760029adeeb9dd954655f/actionview/lib/action_view/helpers/form_helper.rb#L396)) * `:method` is also a valid option (as [tested here](https://github.com/rails/rails/blob/b0f44c9ff0be84ebc42760029adeeb9dd954655f/actionview/test/template/form_helper_test.rb#L1819)) * `:remote` is also a valid option (as [tested here](https://github.com/rails/rails/blob/b0f44c9ff0be84ebc42760029adeeb9dd954655f/actionview/test/template/form_helper_test.rb#L1850)) [ci skip]
-
- 30 10月, 2014 1 次提交
-
-
由 Pablo Herrero 提交于
-
- 22 9月, 2014 1 次提交
-
- 09 8月, 2014 1 次提交
-
-
由 Hendy Tanata 提交于
[skip ci]
-
- 01 7月, 2014 1 次提交
-
-
由 Todd Bealmear 提交于
-
- 30 6月, 2014 1 次提交
-
-
由 Robin Dupret 提交于
-
- 25 6月, 2014 1 次提交
-
-
由 Amiel Martin 提交于
This allows rails code to be more confdent when asking for a model name, instead of having to ask for the class. Rails core discussion here: https://groups.google.com/forum/#!topic/rubyonrails-core/ThSaXw9y1F8
-
- 03 6月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 13 5月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
For some reason, if the hash is empty, we choose "optimized" routes. I am not sure how or why optimized routes differ from regular routes. But, if we make sure the hash is empty, we get a nice speed improvement.
-
- 22 4月, 2014 1 次提交
-
-
由 Zachary Scott 提交于
-
- 10 3月, 2014 1 次提交
-
-
由 Cakey | Buddy Magsipoc 提交于
-
- 06 1月, 2014 1 次提交
-
-
由 Gaelian Ditchburn 提交于
The use of `display:inline` with the content_tag call in the extra_tags_for_form method potentially causes display issues with some browsers, namely Internet Explorer. IE's behaviour of not collapsing the line height on divs with ostensibly no content means that the automatically added div containing the hidden authenticity_token, utf8 and _method form input tags may interfere with other visible form elements in certain circumstances. The use of `display:none` rather than `display:inline` fixes this problem. Fixes #6403
-
- 04 1月, 2014 1 次提交
-
-
由 T.J. Schuck 提交于
-
- 03 12月, 2013 2 次提交
-
-
由 Genadi Samokovarov 提交于
-
由 Rafael Mendonça França 提交于
-
- 17 10月, 2013 1 次提交
-
-
由 Adam Jahnke 提交于
-
- 09 9月, 2013 1 次提交
-
-
由 Adam Niedzielski 提交于
:as option should not overwrite :namespace option when generating html id attribute of the form element. id should be prefixed by specified namespace even if :as option is present Add test case showing the issue and code fixing it
-
- 02 7月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 20 6月, 2013 2 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Eric Hankins 提交于
The option to disable including a hidden ID field on a `fields_for` nested association was incorrectly documented as `hidden_field_id` instead of `include_id`
-
- 07 4月, 2013 1 次提交
-
-
由 wangjohn 提交于
clarify issue #10115. Also made the field_helpers an explicit list of methods.
-
- 22 3月, 2013 1 次提交
-
-
由 ma2gedev 提交于
there are just the same description about accepts_nested_attributes [ci skip]
-
- 17 3月, 2013 1 次提交
-
-
由 Grzegorz Derebecki 提交于
-
- 01 2月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 29 1月, 2013 1 次提交
-
-
由 Ryunosuke SATO 提交于
-
- 06 1月, 2013 4 次提交
-
-
由 Carlos Antonio da Silva 提交于
By checking for object.persisted? first, we avoid the hash lookups for new objects.
-
由 Carlos Antonio da Silva 提交于
When dealing with nested forms, Rails automatically generates a hidden field with the id value of the current object being generated by fields_for. This logic was inside the method that's available from the template object, but we just need it when really dealing with nested attributes, so moving the code to here makes more sense.
-
由 Carlos Antonio da Silva 提交于
Just use it internally from fields_for until we come up with a better solution.
-
由 Carlos Antonio da Silva 提交于
-
- 04 1月, 2013 1 次提交
-
-
- 03 1月, 2013 4 次提交
-
-
由 Akira Matsuda 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 27 12月, 2012 1 次提交
-
-
由 virusman 提交于
-
- 10 12月, 2012 1 次提交
-
-
由 Thiago Pinto 提交于
-
- 09 12月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
This reverts commit ba2d867b. Reason: https://github.com/lifo/docrails/commit/ba2d867b2961b5ef72aad353c2d647b04654cbe3#commitcomment-2276670 [ci skip]
-
- 06 12月, 2012 3 次提交
-
-
由 Thiago Pinto 提交于
-
由 Thiago Pinto 提交于
-
由 Thiago Pinto 提交于
-