Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make form helpers work with <%= | wycats | 2010-03-09 | 1 | -7/+16 |
| | |||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -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é Valim | 2010-02-21 | 1 | -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. | ||||
* | Fix nested attributes with specified collection. | José Valim | 2010-02-07 | 1 | -7/+11 |
| | |||||
* | More html_safe strings now use the safe_concat method | Santiago Pastorino and José Ignacio Costa | 2010-02-05 | 1 | -1/+1 |
| | | | | | | [#3856 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Configuration values should be on AV::Base. | José Valim | 2010-02-02 | 1 | -17/+4 |
| | |||||
* | For performance reasons, you can no longer call html_safe! on Strings. ↵ | Yehuda Katz | 2010-01-31 | 1 | -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 Penner | 2010-01-31 | 1 | -0/+27 |
| | |||||
* | form_for should pass :remote to form_tag through html_options | Stephen St. Martin | 2010-01-31 | 1 | -0/+2 |
| | |||||
* | Revert "Merge branch 'rails/master' into ujs" | Joshua Peek | 2010-01-30 | 1 | -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 | ||||
* | Applied Yehuda's patch; Sharing extract_object_name_for_form! between ↵ | Bob Remeika | 2010-01-27 | 1 | -16/+20 |
| | | | | form_helper and ajax_helper; Added script_decorator helper | ||||
* | Allow f.submit to be localized per object. | José Valim | 2010-01-15 | 1 | -2/+14 |
| | |||||
* | Move Dispatcher setup to Railties and add instrumentation hook. | José Valim | 2010-01-15 | 1 | -1/+1 |
| | |||||
* | Add documentation to f.submit and make scaffold generators use the new shortcut. | José Valim | 2010-01-14 | 1 | -15/+34 |
| | |||||
* | Custom 'type' attribute support for text_field. [#3646 status:resolved] | Stephen Celis | 2010-01-14 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make check boxes accept :multiple as option so they can handle collections ↵ | José Valim | 2010-01-14 | 1 | -1/+6 |
| | | | | (such as HABTM). | ||||
* | Call :to_model before working with the object. | José Valim | 2010-01-14 | 1 | -6/+11 |
| | |||||
* | Add possibility to use i18n translatios in submit FormHelper. | Carlos Antonio da Silva | 2010-01-14 | 1 | -3/+14 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Updated the documentation for helpers.label. | José Valim | 2010-01-07 | 1 | -3/+3 |
| | |||||
* | Use helpers.label instead of views.labels. | José Valim | 2010-01-07 | 1 | -1/+1 |
| | |||||
* | Do not enforce human_attribute_name as required API. | José Valim | 2010-01-02 | 1 | -3/+6 |
| | |||||
* | I18n label helper [#745 status:resolved] | Carsten Gehling | 2010-01-02 | 1 | -3/+36 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow explicit placement of hidden id element for nested models. | Will Read | 2009-11-15 | 1 | -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 Koziarski | 2009-10-08 | 1 | -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 France | 2009-09-12 | 1 | -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 Duncan | 2009-08-09 | 1 | -0/+1 |
| | | | | | | [#2660 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Clean up initializer and some of the internals of PartialRenderer | Yehuda Katz | 2009-08-09 | 1 | -0/+4 |
| | |||||
* | Allow radio buttons to work with booleans. | José Valim | 2009-08-08 | 1 | -2/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Improve a path in _render_partial | Yehuda Katz | 2009-08-06 | 1 | -0/+4 |
| | |||||
* | Rename ActiveRecordHelper to ActiveModelHelper | Yehuda Katz | 2009-07-20 | 1 | -2/+0 |
| | |||||
* | Finish convert_to_object updates | Yehuda Katz | 2009-07-20 | 1 | -1/+3 |
| | |||||
* | Update some tests and add a to_model to form helpers | Yehuda Katz | 2009-07-20 | 1 | -0/+2 |
| | |||||
* | Define ActiveModel API Compliance | Yehuda Katz | 2009-07-20 | 1 | -4/+9 |
| | | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP | ||||
* | Move default_form_builder to ActionView so it'll work in environments not ↵ | Yehuda Katz | 2009-07-19 | 1 | -3/+15 |
| | | | | using ActionView::Base | ||||
* | My suggestion to fix ticket 2401 [#2401 state:resolved] | Jarl Friis | 2009-07-02 | 1 | -4/+6 |
| | | | | Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | ||||
* | Made label target radio button tags with values. Radio button now respects ↵ | David Stevenson | 2009-06-09 | 1 | -7/+19 |
| | | | | | | inherited :index options when generating id. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Add explicit requirement in a few cases it was missing. | Yehuda Katz | 2009-06-02 | 1 | -0/+1 |
| | | | TODO: Come up with the minimal core and remove all of these | ||||
* | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -4/+5 |
| | |||||
* | Merge docrails | Pratik Naik | 2009-03-24 | 1 | -14/+21 |
| | |||||
* | Pass a custom form builder on to nested fields_for calls. [#2023 ↵ | Eloy Duran | 2009-02-27 | 1 | -49/+83 |
| | | | | | | status:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Merge with docrails | Pratik Naik | 2009-02-24 | 1 | -2/+4 |
| | |||||
* | Changed API of NestedAttributes to take an array, or hash with index keys, ↵ | Lance Ivy | 2009-02-13 | 1 | -8/+18 |
| | | | | | | | | of hashes that have the id on the inside of the attributes hash and updated the FormBuilder to produce such hashes. Also fixed NestedAttributes with composite ids. Signed-off-by: Michael Koziarski <michael@koziarski.com> Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> [#1892 state:committed] | ||||
* | Move checkbox hidden field before the actual checkbox so the actual value ↵ | Joshua Peek | 2009-02-10 | 1 | -1/+3 |
| | | | | doesn't get clobbered [#1863 state:resolved] | ||||
* | Allowing an object to be passed explicitly to a fields_for with ↵ | Pascal Ehlert | 2009-02-06 | 1 | -1/+2 |
| | | | | | | | nested_attributes on one-to-one associations Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1849 state:committed] | ||||
* | Add support for nested object forms to ActiveRecord and the helpers in ↵ | Eloy Duran | 2009-02-01 | 1 | -9/+187 |
| | | | | | | | | ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed] | ||||
* | Inline code comments for class_eval/module_eval [#1657 state:resolved] | Xavier Noria | 2008-12-28 | 1 | -3/+7 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Merge docrails | Pratik Naik | 2008-10-05 | 1 | -4/+4 |
| | |||||
* | error_message_on takes an options hash instead of ordered parameters [#704 ↵ | Clemens Kofler | 2008-07-27 | 1 | -2/+2 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Fixed index and auto index for nested fields_for [#327 state:resolved] | Kevin Glowacz | 2008-07-19 | 1 | -7/+23 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Removed unused option from FormHelper#fields_for [#641 state:resolved] | Clemens Kofler | 2008-07-19 | 1 | -4/+0 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> |