aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
Commit message (Collapse)AuthorAgeFilesLines
...
* Implemented a fuller stub in AjaxTestCase for url_for because link_to calls ↵Bob Remeika2010-01-271-0/+6
| | | | url_for on all urls passed to it. Tests that were testing different input types for the url were failing because of this.
* Added the beginnings of the observe_field helperBob Remeika2010-01-271-11/+8
|
* Added observe_formBob Remeika2010-01-271-0/+8
|
* Added submit_to_remote helperBob Remeika2010-01-271-0/+10
|
* Removed duplicationBob Remeika2010-01-271-8/+8
|
* Changed data-name to data-observed on observe_fieldBob Remeika2010-01-271-11/+19
|
* Refactored ajax helpers so they use a little bit more coherent pattern; ↵Bob Remeika2010-01-271-56/+78
| | | | Removed code duplication from form_remote_tag
* Applied Yehuda's patch; Sharing extract_object_name_for_form! between ↵Bob Remeika2010-01-272-40/+48
| | | | form_helper and ajax_helper; Added script_decorator helper
* Changed observe_field to field_observerBob Remeika2010-01-271-1/+1
|
* Changed data-rails-type to data-js-typeBob Remeika2010-01-271-1/+1
|
* Changed data-remote='true' to data-js-type='remote'Bob Remeika2010-01-271-1/+1
|
* Took first stab at reimplementing form_remote_tag helpersBob Remeika2010-01-271-24/+41
|
* Added assert_data_element_json test helper for data element helpersBob Remeika2010-01-271-4/+6
|
* Took another stab at observe_field. Now implementing data only helpers as ↵Bob Remeika2010-01-271-11/+41
| | | | script elements.
* Changed the observe field node into a div with display:noneBob Remeika2010-01-271-3/+8
|
* Implemented a fuller stub in AjaxTestCase for url_for because link_to calls ↵Bob Remeika2010-01-271-1/+1
| | | | url_for on all urls passed to it. Tests that were testing different input types for the url were failing because of this.
* Added the beginnings of the observe_field helperBob Remeika2010-01-271-1/+13
|
* Merge remote branch 'fxn/master'Jeremy Kemper2010-01-261-1/+0
|\
| * removes now void extending.rbXavier Noria2010-01-261-1/+0
| |
* | Fix t('.helper').José Valim2010-01-261-2/+6
|/
* Make @controller an internal ivar in the viewJoshua Peek2010-01-223-11/+11
|
* debug helper output should not be sanitizedJoshua Peek2010-01-161-2/+2
|
* Merge docrailsPratik Naik2010-01-173-5/+6
|
* 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>
* Fixed that PrototypeHelper#update_page should return html_safe [DHH]David Heinemeier Hansson2010-01-081-1/+1
|
* Fixed that much of DateHelper wouldn't return html_safe? strings [DHH]David Heinemeier Hansson2010-01-081-5/+5
|
* From now on, parameters defined in default_url_options can be absent from ↵José Valim2010-01-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | named routes. This allows the following setup to work: # app/controllers/application_controller.rb class ApplicationController def default_url_options(options=nil) { :locale => I18n.locale } end end # From your views and controllers: I18n.locale #=> :en users_url #=> "/en/users" users_url(:pl) #=> "/pl/users" user_url(1) #=> "/en/users/1" user_url(:pl, 1) #=> "/pl/users/1" user_url(1, :locale => :pl) #=> "/pl/users/1" If you provide all expected parameters, it still works as previously. But if any parameter is missing, it tries to assign all possible ones with the hash returned in default_url_options or the one passed straight to the named route method. Beware that default_url_options in ApplicationController is not shared with ActionMailer, so you are required to always give the locale in your email views.
* Updated the documentation for helpers.label.José Valim2010-01-071-3/+3
|
* Use helpers.label instead of views.labels.José Valim2010-01-072-2/+2
|
* errors in ActionView should not be namespaced as well.José Valim2010-01-071-1/+1
|
* Remove CGI.escape in function of Rack::Mount.escapeJosé Valim2010-01-061-4/+4
|
* NumberHelper#number_to_currency should output html_safe strings so the units ↵David Heinemeier Hansson2010-01-051-1/+1
| | | | are not escaped
* adding fix for auto linking to master tooZach Brock2010-01-051-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* 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>
* Translated strings in the view are assumed html_safe (Closes #3401)David Heinemeier Hansson2009-12-241-1/+1
|
* All AD modules are "deferrable"Joshua Peek2009-12-221-0/+1
|
* 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>
* Fix some Ruby warnings: `*' interpreted as argument prefixBryan Helmkamp2009-11-091-1/+1
|
* Fix error_messages_for when instance variable names are given.José Valim2009-10-211-6/+6
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Bring agnosticism to error_messages_for.José Valim2009-10-171-6/+10
|
* Unify benchmark APIs.José Valim2009-10-151-54/+0
|
* Make sure non-escaped urls aren't considered safeMichael Koziarski2009-10-151-1/+1
|
* ActionView.url_for doesn't escape by defaultPhil Darnowsky2009-10-151-1/+1
| | | | | | | | | | | | | | | | | ActionView::Helpers::UrlHelper#url_for used to escape the URLs it generated by default. This was most commonly seen when generating a path with multiple query parameters, e.g. url_for(:controller => :foo, :action => :bar, :this => 123, :that => 456) would return http://example.com/foo/bar?that=456&amp;this=123 escaping an ampersand that shouldn't be escaped. This is both wrong and inconsistent with the behavior of ActionController#url_for, and is changed. Signed-off-by: Michael Koziarski <michael@koziarski.com>