Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More Ruby 1.9 hash syntax. | Rafael Mendonça França | 2012-10-06 | 1 | -52/+47 |
| | |||||
* | We don't need to check blank? here. | Rafael Mendonça França | 2012-10-06 | 1 | -1/+1 |
| | | | | | | | | Also the blank? check introduced a bug. $ rails generate model Foo blank:boolean form_for(Foo.new(:blank => true)) => ArgumentError, "First argument in form cannot contain nil or be empty" | ||||
* | copy edits 137e5d9 | Xavier Noria | 2012-09-18 | 1 | -1/+1 |
| | |||||
* | Add extra documentation for password_field | Arek W | 2012-09-18 | 1 | -1/+1 |
| | | | | I think this should be explicit as the password fields behaviour is inconsistent with other fields in this regard. It had me scratching my head until I dug through the source code. | ||||
* | Add ActionView::ModelNaming | Piotr Sarnacki | 2012-08-28 | 1 | -3/+3 |
| | | | | | | | It's just a duplicate of ActionController::ModelNaming. These are just a simple helpers for decoupling Active Model, so it does not make sense to extract it to Active Support, but the point is to decouple also Action View and Action Pack | ||||
* | Fix documentation mistakes | Janko Marohnić | 2012-08-21 | 1 | -3/+3 |
| | |||||
* | check for nil or empty record in form_for | schneems | 2012-08-10 | 1 | -0/+1 |
| | | | | if nil or an empty array is passed into form_for you get a horrible error message, this one is much more indicative of what the programmer needs to know to fix the problem. | ||||
* | Allow data attributes to be set as a first-level option for form_for, so you ↵ | David Heinemeier Hansson | 2012-08-08 | 1 | -0/+19 |
| | | | | can write `form_for @record, data: { behavior: 'autosave' }` instead of `form_for @record, html: { data: { behavior: 'autosave' } }` *DHH* | ||||
* | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/class/attribute in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Remove ActiveModel dependency from ActionPack | Guillermo Iguaran | 2012-06-30 | 1 | -13/+8 |
| | | | | | | | | ActiveModel is used in ActionPack for ActiveModel::Naming for a few, mostly optional aspects of ActionPack related to automatically converting an ActiveModel compliant object into a key for params and routing. It uses only three methods of ActiveModel (ActiveModel::Naming.route_key, ActiveModel::Naming.singular_route_key and ActiveModel::Naming.param_key). | ||||
* | fixes a few mistakes in api docs [ci skip] | Vijay Dev | 2012-06-22 | 1 | -1/+1 |
| | |||||
* | Add rdoc to phone_field | Gaurish Sharma | 2012-06-16 | 1 | -0/+1 |
| | | | [API docs](http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-phone_field) for `phone_field` provide no information on what the method actually does. no description nor access to source code. so added this | ||||
* | accept a block in button helper. | Yuki Nishijima | 2012-06-05 | 1 | -2/+13 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-23 | 1 | -1/+1 |
|\ | |||||
| * | Revert "Remove blank trailing comments" | Vijay Dev | 2012-05-23 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | This reverts commit fa6d921e11363e9b8c4bc10f7aed0b9faffdc33a. Reason: Not a fan of such massive changes. We usually close such changes if made to Rails master as a pull request. Following the same principle here and reverting. [ci skip] | ||||
| * | Fix incorrect example for fields_for - without the '=' it will not output ↵ | David Morton | 2012-05-22 | 1 | -1/+1 |
| | | | | | | | | anything. | ||||
| * | Remove blank trailing comments | Henrik Hodne | 2012-05-20 | 1 | -11/+0 |
| | | | | | | | | | | | | | | For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed. | ||||
* | | Add several HTML5 input helpers | Carlos Galdino | 2012-05-21 | 1 | -0/+68 |
| | | | | | | | | | | | | | | | | | | | | | | | | The input types added are: - input[type="month"] - input[type="week"] - input[type="datetime"] - input[type="datetime-local"] | ||||
* | | Add HTML5 input[type="color"] helper | Carlos Galdino | 2012-05-21 | 1 | -0/+9 |
|/ | |||||
* | Add HTML5 input[type="time"] helper | Alex Soulim | 2012-05-18 | 1 | -0/+17 |
| | |||||
* | Removing ==Examples and last blank lines of docs from actionpack | Francesco Rodriguez | 2012-05-15 | 1 | -5/+0 |
| | |||||
* | Move require to where it's needed | Santiago Pastorino | 2012-05-11 | 1 | -0/+1 |
| | |||||
* | Lazy load `default_form_builder` if it's passed as a string | Piotr Sarnacki | 2012-04-28 | 1 | -1/+7 |
| | | | | closes #3341 | ||||
* | Missed checked in Form Helper example | Alexey Vakhov | 2012-04-24 | 1 | -1/+1 |
| | |||||
* | Fix example in ActionView::Helpers::FormHelper | Thibaut Courouble | 2012-04-20 | 1 | -1/+1 |
| | |||||
* | Add index method to FormBuilder. Useful when you use field_for and need to ↵ | Jorge Bejar | 2012-04-11 | 1 | -5/+22 |
| | | | | know the index number into the iteration. | ||||
* | Properly deprecate the block argument in AV FormBuilder | Carlos Antonio da Silva | 2012-03-23 | 1 | -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/docrails | Vijay Dev | 2012-03-13 | 1 | -66/+138 |
|\ | |||||
| * | Revised explanation of fields_for usage. | Mark Thomson | 2012-03-11 | 1 | -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 Thomson | 2012-03-10 | 1 | -1/+2 |
| | | |||||
| * | Revised explanation of form_for usage | Mark Thomson | 2012-03-10 | 1 | -53/+84 |
| | | |||||
| * | Additional preamble comments in form_helper.rb. | Mark Thomson | 2012-03-08 | 1 | -7/+18 |
| | | |||||
| * | Small correction to the description of the role of the form builder. | Mark Thomson | 2012-03-08 | 1 | -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 Arndt | 2012-03-12 | 1 | -1/+1 |
| | | |||||
* | | Fixes #5324 by removing default size options from input:text and default ↵ | Philip Arndt | 2012-03-10 | 1 | -15/+15 |
|/ | | | | cols and rows options from textarea. | ||||
* | simplify namespace assignment in fields_for | Sergey Nartimov | 2012-03-02 | 1 | -1/+1 |
| | |||||
* | uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵ | Xavier Noria | 2012-02-24 | 1 | -1/+1 |
| | | | | the update action of resources | ||||
* | Add config.default_method_for_update to support PATCH | David Lee | 2012-02-22 | 1 | -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/docrails | Vijay Dev | 2012-02-18 | 1 | -5/+5 |
|\ | |||||
| * | Update f.button docs to reflect real label implementation | Carlos Antonio da Silva | 2012-02-14 | 1 | -5/+5 |
| | | |||||
* | | Add HTML5 input[type="date"] helper | Olek Janiszewski | 2012-02-12 | 1 | -0/+18 |
|/ | |||||
* | Refactor FormBuilder arguments and default config | Carlos Antonio da Silva | 2012-01-18 | 1 | -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 duplication | Rafael Mendonça França | 2012-01-17 | 1 | -3/+3 |
| | |||||
* | Do not need of ActionView::Helpers scope since we are inside | Rafael Mendonça França | 2012-01-17 | 1 | -14/+14 |
| | | | | ActionView::Helpers | ||||
* | Remove unused code | Rafael Mendonça França | 2012-01-17 | 1 | -39/+0 |
| | |||||
* | Cleanup | Rafael Mendonça França | 2012-01-17 | 1 | -72/+1 |
| | |||||
* | Remove unused code | Rafael Mendonça França | 2012-01-17 | 1 | -31/+0 |
| | |||||
* | Extract RangeField | Rafael Mendonça França | 2012-01-17 | 1 | -11/+1 |
| |