aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/active_model_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Trim down Active Model API by removing valid? and errors.full_messagesJosé Valim2012-02-071-1/+1
|
* no need to module_eval here anymoreAkira Matsuda2012-01-231-1/+3
|
* Do not need each here anymoreRafael Mendonça França2012-01-171-3/+1
|
* Extract DatetimeSelectRafael Mendonça França2012-01-171-1/+1
|
* Extract TimeSelectRafael Mendonça França2012-01-171-1/+1
|
* Extract DateSelectRafael Mendonça França2012-01-171-1/+1
|
* fix adding field_with_errors to date selects, closes #3487Vasiliy Ermolovich2011-12-201-5/+0
|
* Start cleanup of deprecations in ActionViewCarlos Antonio da Silva2010-09-061-23/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Do not wrap hidden fields with error proc [#4962 state:resolved]Carlos Antonio da Silva2010-06-251-2/+16
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Action View is now titled.Rizwan Reza2010-06-211-0/+1
|
* Base options cant live in lazy loaded helpers as they then wont be available ↵David Heinemeier Hansson2010-05-311-7/+0
| | | | to set for config
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename fieldWithErrors style to field_with_errors. Remove unused alert style.Jeremy Kemper2010-04-241-1/+1
|
* Move verification to a plugin as well: http://github.com/rails/verification.gitJosé Valim2010-04-101-2/+2
|
* Remove input, form, error_messages_for and error_message_on from the ↵José Valim2010-04-101-265/+20
| | | | framework. If you think you will miss them, feel free to use the dynamic_form plugin available at http://github.com/rails/dynamic_form
* 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
* html_tag option to wrap error_message_on text [#4283 state:resolved]Paco Guzman2010-03-281-9/+12
| | | Signed-off-by: wycats <wycats@gmail.com>
* Missing requirewycats2010-03-271-0/+1
|
* Fixes a bug where error_messages_for was returning an empty div [#4048 ↵wycats2010-03-271-1/+1
| | | | state:resolved] (ht: Geoff Garside)
* Recovers error_messages for ActiveRecordInstanceTag. [#4078 state:resolved]Daniel Rodríguez Troitiño2010-03-271-0/+4
| | | Signed-off-by: wycats <wycats@gmail.com>
* Making escaped things more readableSantiago Pastorino2010-03-141-1/+1
|
* 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-2/+2
| | | | 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.
* Explicit html_escape removed when not neededSantiago Pastorino and José Ignacio Costa2010-02-141-2/+2
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* content_tag should escape its inputBruno Michel2010-02-141-3/+3
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-6/+5
| | | | | | | | | | | | 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.
* errors in ActionView should not be namespaced as well.José Valim2010-01-071-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
|
* error procs have to be safe tooMichael Koziarski2009-10-081-1/+1
|
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-0/+1
| | | | | | | | | | | | 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.
* Ruby 1.9.2: implicit argument passing of super from method defined by ↵Jeremy Kemper2009-08-071-3/+1
| | | | define_method() is not supported
* Add support for error_messages_for(@obj)Yehuda Katz2009-07-281-6/+24
|
* Rename ActiveRecordHelper to ActiveModelHelperYehuda Katz2009-07-201-0/+285