Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Extract DateSelect | Rafael Mendonça França | 2012-01-17 | 1 | -1/+1 |
| | |||||
* | fix adding field_with_errors to date selects, closes #3487 | Vasiliy Ermolovich | 2011-12-20 | 1 | -5/+0 |
| | |||||
* | Start cleanup of deprecations in ActionView | Carlos Antonio da Silva | 2010-09-06 | 1 | -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 Silva | 2010-06-25 | 1 | -2/+16 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Action View is now titled. | Rizwan Reza | 2010-06-21 | 1 | -0/+1 |
| | |||||
* | Base options cant live in lazy loaded helpers as they then wont be available ↵ | David Heinemeier Hansson | 2010-05-31 | 1 | -7/+0 |
| | | | | to set for config | ||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Rename fieldWithErrors style to field_with_errors. Remove unused alert style. | Jeremy Kemper | 2010-04-24 | 1 | -1/+1 |
| | |||||
* | Move verification to a plugin as well: http://github.com/rails/verification.git | José Valim | 2010-04-10 | 1 | -2/+2 |
| | |||||
* | Remove input, form, error_messages_for and error_message_on from the ↵ | José Valim | 2010-04-10 | 1 | -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 that | wycats | 2010-03-29 | 1 | -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 Guzman | 2010-03-28 | 1 | -9/+12 |
| | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Missing require | wycats | 2010-03-27 | 1 | -0/+1 |
| | |||||
* | Fixes a bug where error_messages_for was returning an empty div [#4048 ↵ | wycats | 2010-03-27 | 1 | -1/+1 |
| | | | | state:resolved] (ht: Geoff Garside) | ||||
* | Recovers error_messages for ActiveRecordInstanceTag. [#4078 state:resolved] | Daniel Rodríguez Troitiño | 2010-03-27 | 1 | -0/+4 |
| | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Making escaped things more readable | Santiago Pastorino | 2010-03-14 | 1 | -1/+1 |
| | |||||
* | 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 | -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 needed | Santiago Pastorino and José Ignacio Costa | 2010-02-14 | 1 | -2/+2 |
| | | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local> | ||||
* | content_tag should escape its input | Bruno Michel | 2010-02-14 | 1 | -3/+3 |
| | | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local> | ||||
* | For performance reasons, you can no longer call html_safe! on Strings. ↵ | Yehuda Katz | 2010-01-31 | 1 | -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é Valim | 2010-01-07 | 1 | -1/+1 |
| | |||||
* | Fix error_messages_for when instance variable names are given. | José Valim | 2009-10-21 | 1 | -6/+6 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Bring agnosticism to error_messages_for. | José Valim | 2009-10-17 | 1 | -6/+10 |
| | |||||
* | error procs have to be safe too | Michael Koziarski | 2009-10-08 | 1 | -1/+1 |
| | |||||
* | Switch to on-by-default XSS escaping for rails. | Michael Koziarski | 2009-10-08 | 1 | -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 Kemper | 2009-08-07 | 1 | -3/+1 |
| | | | | define_method() is not supported | ||||
* | Add support for error_messages_for(@obj) | Yehuda Katz | 2009-07-28 | 1 | -6/+24 |
| | |||||
* | Rename ActiveRecordHelper to ActiveModelHelper | Yehuda Katz | 2009-07-20 | 1 | -0/+285 |