Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵ | José Valim | 2010-01-07 | 4 | -12/+61 |
| | | | | validates. | ||||
* | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 17 | -98/+328 |
| | | | | | | | | | | | | | | | attributes: class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove stray semicolon from cookie_verification_secret initialzer template | Jeffrey Hardy | 2010-01-07 | 1 | -1/+1 |
| | |||||
* | Align assignments in the session_store initializer template | Jeffrey Hardy | 2010-01-07 | 1 | -2/+2 |
| | |||||
* | Ensure that segments in default_url_options also work with format specified. | José Valim | 2010-01-07 | 2 | -2/+10 |
| | |||||
* | From now on, parameters defined in default_url_options can be absent from ↵ | José Valim | 2010-01-07 | 4 | -65/+93 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Remove duplicated url_for code and move methods shared between ActionMailer ↵ | José Valim | 2010-01-07 | 11 | -479/+489 |
| | | | | and ActionController up to AbstractController. | ||||
* | Updated the documentation for helpers.label. | José Valim | 2010-01-07 | 1 | -3/+3 |
| | |||||
* | Allow to specify default attributes names translation in I18n yml files. | José Valim | 2010-01-07 | 3 | -2/+13 |
| | | | | | | | | | | | | For example, you could easily specify :created_at and :updated_at translations as: en: attributes: created_at: "Created at" updated_at: "Updated at" This configuration is built on ActiveModel, so it means those translations are shared between different ORMs as well (but always as a fallback). | ||||
* | Be sure to dup load paths before clearing the array. | José Valim | 2010-01-07 | 2 | -2/+2 |
| | |||||
* | Use helpers.label instead of views.labels. | José Valim | 2010-01-07 | 5 | -8/+8 |
| | |||||
* | errors in ActionView should not be namespaced as well. | José Valim | 2010-01-07 | 3 | -15/+14 |
| | |||||
* | Add a deprecation message to activerecord.errors. | José Valim | 2010-01-07 | 1 | -0/+11 |
| | |||||
* | Errors messages are now moved from :activerecord.errors to simply :errors on ↵ | José Valim | 2010-01-07 | 10 | -228/+108 |
| | | | | I18n yml files. | ||||
* | Remove unneeded reliance on super -> method_missing quirk | Jeremy Kemper | 2010-01-07 | 2 | -2/+29 |
| | |||||
* | Remove unneeded reliance on Numeric#round quirk | Jeremy Kemper | 2010-01-06 | 1 | -2/+3 |
| | |||||
* | instrumenter should be accessible from ActiveSupport::Notifications. | José Valim | 2010-01-06 | 2 | -15/+16 |
| | |||||
* | Ensure before_validation and after_validation accepts :on as option. | José Valim | 2010-01-06 | 2 | -3/+64 |
| | |||||
* | Fix failing app generator test when using the --dev option | Jeffrey Hardy | 2010-01-06 | 1 | -1/+1 |
| | |||||
* | Restore require of 'active_record/fixtures' for Rake tasks that use them | Jeffrey Hardy | 2010-01-06 | 1 | -0/+4 |
| | |||||
* | Use better defaults for fixtures: transactional=true, instantiated=false | Jeffrey Hardy | 2010-01-06 | 1 | -2/+2 |
| | | | | | These reflect the settings that were previously included in the default test_helper.rb, removed in d7d9173. | ||||
* | Update db:migrate error message to reflect the removal of config.frameworks | Jeffrey Hardy | 2010-01-06 | 1 | -1/+1 |
| | |||||
* | Fix spacing on frameworks error message | Jeffrey Hardy | 2010-01-06 | 1 | -2/+2 |
| | |||||
* | Remove config.gem deprecation stub since its not "deprecated" but | Joshua Peek | 2010-01-06 | 1 | -8/+0 |
| | | | | | | completely removed. This makes feature detection easier with config.respond_to?(:gem) | ||||
* | namespace in routes changes both the path and name prefix. | José Valim | 2010-01-06 | 2 | -2/+5 |
| | |||||
* | Allow named routes to be debugged. | José Valim | 2010-01-06 | 1 | -23/+20 |
| | |||||
* | config.plugins should still work with an array of strings | Joshua Peek | 2010-01-05 | 2 | -4/+11 |
| | |||||
* | Ruby 1.9.1 requires hash given to foormat to contain symbols. | José Valim | 2010-01-06 | 1 | -1/+1 |
| | |||||
* | Remove CGI.escape in function of Rack::Mount.escape | José Valim | 2010-01-06 | 3 | -8/+8 |
| | |||||
* | redirect in routes takes port into account [#3653 status:resolved] | José Valim | 2010-01-05 | 2 | -0/+13 |
| | |||||
* | All router redirect helper to accept a full URI [#3653 state:resolved] | Joshua Peek | 2010-01-05 | 2 | -7/+25 |
| | |||||
* | assert_template depends on AV::Template monkey patches in action_view/test_case | Joshua Peek | 2010-01-05 | 2 | -0/+34 |
| | |||||
* | NumberHelper#number_to_currency should output html_safe strings so the units ↵ | David Heinemeier Hansson | 2010-01-05 | 1 | -1/+1 |
| | | | | are not escaped | ||||
* | Rails layouts, error pages, and public/index now use HTML5. | Dan Croak | 2010-01-05 | 5 | -5/+0 |
| | | | | | | | | | | The specification allows the character encoding meta tag to be removed if character encoding is set at the transport level (Content-Type), which Rails is doing. http://dev.w3.org/html5/html4-differences/#character-encoding Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Controller tests should always require view tests since they add behavior ↵ | Jeremy Kemper | 2010-01-04 | 1 | -0/+1 |
| | | | | controllers expect | ||||
* | Trash string coercion rack hacks | Joshua Peek | 2010-01-04 | 6 | -73/+0 |
| | |||||
* | Default middleware stack needs to be available at configuration time | Joshua Peek | 2010-01-04 | 3 | -23/+29 |
| | |||||
* | Middleware configuration tests | Joshua Peek | 2010-01-04 | 1 | -0/+67 |
| | |||||
* | Reinstate explicit active_support/test_case require since console_app ↵ | Jeremy Kemper | 2010-01-04 | 1 | -0/+1 |
| | | | | interacts with a non-autoloaded constant | ||||
* | Fix --dev option | Carlhuda | 2010-01-04 | 1 | -1/+2 |
| | |||||
* | use_instantiated_fixtures and use_transactional_fixtures defaults are set in ↵ | Joshua Peek | 2010-01-04 | 1 | -2/+0 |
| | | | | active_record/fixtures | ||||
* | Smoke test for test_help | Joshua Peek | 2010-01-04 | 1 | -0/+38 |
| | |||||
* | rack and rack-test are pulled in by AD | Joshua Peek | 2010-01-04 | 1 | -3/+0 |
| | |||||
* | Autoload AR test case | Joshua Peek | 2010-01-04 | 6 | -12/+4 |
| | |||||
* | Autoload AMo test case | Joshua Peek | 2010-01-04 | 4 | -7/+4 |
| | |||||
* | Autoload AS test case | Joshua Peek | 2010-01-04 | 15 | -24/+6 |
| | |||||
* | Autoload AM test case class | Joshua Peek | 2010-01-04 | 2 | -2/+0 |
| | |||||
* | Autoload AC and AV test case classes | Joshua Peek | 2010-01-04 | 7 | -11/+7 |
| | |||||
* | Expose Instrumenter id in Notifications. | José Valim | 2010-01-04 | 2 | -0/+6 |
| | |||||
* | @_formats initialization should be AbstractController::Base. | José Valim | 2010-01-04 | 3 | -7/+6 |
| |