aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'rails/master'Xavier Noria2010-04-061-4/+67
|\
| * Added all the new HTML5 form types as individual form tag methods (search, ↵David Heinemeier Hansson2010-04-051-0/+58
| | | | | | | | url, number, etc) (Closes #3646) [Stephen Celis]
| * changed from :object_name to :as on form_for apiSantiago Pastorino2010-04-051-7/+7
| |
| * deprecate form_for(symbol_or_string, ...) in favor of :object_name optionSantiago Pastorino2010-04-051-4/+9
| |
* | We don't need explicit :url => { :action => "create" } in form_for when ↵Rizwan Reza2010-04-051-7/+7
|/ | | | following Rails conventions.
* :action => "create" added to form_for with name only to show appropiate behaviorSantiago Pastorino2010-04-031-6/+6
|
* :action => "update" used in a non RESTful way confusesSantiago Pastorino2010-04-031-11/+11
|
* Refactored url_for in AV to have its own instances of the helpers instead of ↵wycats2010-04-031-0/+1
| | | | proxying back to the controller. This potentially allows for more standalone usage of AV. It also kicked up a lot of dust in the tests, which were mocking out controllers to get this behavior. By moving it to the view, it made a lot of the tests more standalone (a win)
* Replace the placeholder base_hook API with on_load. To specify some code thatwycats2010-03-291-1/+1
| | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* Merge branch 'master' into docrailswycats2010-03-261-3/+3
|\
| * Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵wycats2010-03-171-3/+3
| | | | | | | | warnings are in dependencies.
* | Update of block helpers examples in form_helper.rbJeroen van Dijk2010-03-131-32/+32
| |
* | Merge remote branch 'mainstream/master'Pratik Naik2010-03-121-19/+29
|\| | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb railties/lib/rails/configuration.rb railties/lib/rails/log_subscriber.rb
| * Make form helpers work with <%= wycats2010-03-091-7/+16
| |
| * Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
| * Require persisted? in ActiveModel::Lint and remove new_record? and ↵José Valim2010-02-211-9/+8
| | | | | | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.
* | Merge remote branch 'mainstream/master'Pratik Naik2010-02-141-8/+12
|\| | | | | | | | | | | | | | | Conflicts: railties/README railties/guides/source/active_support_core_extensions.textile railties/guides/source/getting_started.textile railties/lib/generators/rails/app/templates/README
| * Fix nested attributes with specified collection.José Valim2010-02-071-7/+11
| |
| * More html_safe strings now use the safe_concat methodSantiago Pastorino and José Ignacio Costa2010-02-051-1/+1
| | | | | | | | | | | | [#3856 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Merge remote branch 'mainstream/master'Pratik Naik2010-02-041-17/+4
|\| | | | | | | | | Conflicts: railties/guides/source/3_0_release_notes.textile
| * Configuration values should be on AV::Base.José Valim2010-02-021-17/+4
| |
* | Merge remote branch 'mainstream/master'Pratik Naik2010-02-011-2/+31
|\|
| * For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.
| * UJS documentation.Stefan Penner2010-01-311-0/+27
| |
| * form_for should pass :remote to form_tag through html_optionsStephen St. Martin2010-01-311-0/+2
| |
* | Merge remote branch 'mainstream/master'Pratik Naik2010-01-311-20/+16
|\| | | | | | | | | Conflicts: activemodel/lib/active_model/state_machine.rb
| * Revert "Merge branch 'rails/master' into ujs"Joshua Peek2010-01-301-20/+16
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 3aa1ea1ae4baa4a03d03644e798eeb98a4745785, reversing changes made to 2c12a71378d2146c822acb389b00b866f6420ff5. Conflicts: actionpack/lib/action_view/helpers/javascript_helper.rb actionpack/lib/action_view/helpers/url_helper.rb actionpack/test/template/url_helper_test.rb
* | Merge remote branch 'mainstream/master'Pratik Naik2010-01-281-16/+20
|\| | | | | | | | | Conflicts: railties/lib/rails/railtie.rb
| * Applied Yehuda's patch; Sharing extract_object_name_for_form! between ↵Bob Remeika2010-01-271-16/+20
| | | | | | | | form_helper and ajax_helper; Added script_decorator helper
* | Fixing up that _delete is no longer used on the form helper for ↵Mikel Lindsaar2010-01-241-4/+4
|/ | | | accepts_nested_attributes_for, it is now _destroy
* Allow f.submit to be localized per object.José Valim2010-01-151-2/+14
|
* Move Dispatcher setup to Railties and add instrumentation hook.José Valim2010-01-151-1/+1
|
* Add documentation to f.submit and make scaffold generators use the new shortcut.José Valim2010-01-141-15/+34
|
* Custom 'type' attribute support for text_field. [#3646 status:resolved]Stephen Celis2010-01-141-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make check boxes accept :multiple as option so they can handle collections ↵José Valim2010-01-141-1/+6
| | | | (such as HABTM).
* Call :to_model before working with the object.José Valim2010-01-141-6/+11
|
* Add possibility to use i18n translatios in submit FormHelper.Carlos Antonio da Silva2010-01-141-3/+14
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Updated the documentation for helpers.label.José Valim2010-01-071-3/+3
|
* Use helpers.label instead of views.labels.José Valim2010-01-071-1/+1
|
* Do not enforce human_attribute_name as required API.José Valim2010-01-021-3/+6
|
* I18n label helper [#745 status:resolved]Carsten Gehling2010-01-021-3/+36
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Allow explicit placement of hidden id element for nested models.Will Read2009-11-151-2/+11
| | | | | | [#3259 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-2/+2
| | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
* Allow fields_for on a nested_attributes association to accept an explicit ↵Andrew France2009-09-121-7/+19
| | | | | | collection to be used. [#2648 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Fixed to_label_tag to accept id attribute without changing for attribute ↵Matt Duncan2009-08-091-0/+1
| | | | | | [#2660 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Clean up initializer and some of the internals of PartialRendererYehuda Katz2009-08-091-0/+4
|
* Allow radio buttons to work with booleans.José Valim2009-08-081-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve a path in _render_partialYehuda Katz2009-08-061-0/+4
|
* Rename ActiveRecordHelper to ActiveModelHelperYehuda Katz2009-07-201-2/+0
|