aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that segments in default_url_options also work with format specified.José Valim2010-01-072-2/+10
|
* From now on, parameters defined in default_url_options can be absent from ↵José Valim2010-01-074-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é Valim2010-01-0710-477/+488
| | | | and ActionController up to AbstractController.
* Updated the documentation for helpers.label.José Valim2010-01-071-3/+3
|
* Use helpers.label instead of views.labels.José Valim2010-01-075-8/+8
|
* errors in ActionView should not be namespaced as well.José Valim2010-01-073-15/+14
|
* namespace in routes changes both the path and name prefix.José Valim2010-01-062-2/+5
|
* Allow named routes to be debugged.José Valim2010-01-061-23/+20
|
* Ruby 1.9.1 requires hash given to foormat to contain symbols.José Valim2010-01-061-1/+1
|
* Remove CGI.escape in function of Rack::Mount.escapeJosé Valim2010-01-063-8/+8
|
* redirect in routes takes port into account [#3653 status:resolved]José Valim2010-01-052-0/+13
|
* All router redirect helper to accept a full URI [#3653 state:resolved]Joshua Peek2010-01-052-7/+25
|
* assert_template depends on AV::Template monkey patches in action_view/test_caseJoshua Peek2010-01-051-0/+9
|
* NumberHelper#number_to_currency should output html_safe strings so the units ↵David Heinemeier Hansson2010-01-051-1/+1
| | | | are not escaped
* Controller tests should always require view tests since they add behavior ↵Jeremy Kemper2010-01-041-0/+1
| | | | controllers expect
* Trash string coercion rack hacksJoshua Peek2010-01-044-71/+0
|
* Default middleware stack needs to be available at configuration timeJoshua Peek2010-01-041-20/+0
|
* Autoload AR test caseJoshua Peek2010-01-041-1/+0
|
* Autoload AS test caseJoshua Peek2010-01-044-5/+0
|
* Autoload AC and AV test case classesJoshua Peek2010-01-045-6/+7
|
* @_formats initialization should be AbstractController::Base.José Valim2010-01-043-7/+6
|
* Remove deprecated formatted named routesJosé Valim2010-01-042-26/+0
|
* adding fix for auto linking to master tooZach Brock2010-01-052-1/+15
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* MergeDavid Heinemeier Hansson2010-01-0317-38/+171
|\
| * Use underscore in notification namespaces.José Valim2010-01-046-10/+10
| |
| * Ensure no notification is on the queue before running notifications related ↵José Valim2010-01-034-0/+8
| | | | | | | | tests.
| * Add notifications to ActionDispatch::ShowExceptions, this can be used as ↵José Valim2010-01-032-2/+42
| | | | | | | | hooks for plugins like ExceptionNotifier.
| * Use namespaces in notifications.José Valim2010-01-0310-32/+39
| |
| * fixed missing or incorrect session data error messageStefan Penner2010-01-021-1/+1
| |
| * Silence warningsMikel Lindsaar2010-01-021-0/+1
| |
| * Do not enforce human_attribute_name as required API.José Valim2010-01-021-3/+6
| |
| * I18n label helper [#745 status:resolved]Carsten Gehling2010-01-023-3/+77
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Added that ActionController::Base now does helper :all instead of relying on ↵David Heinemeier Hansson2010-01-032-0/+4
|/ | | | the default ApplicationController in Rails to do it [DHH]
* Make rendering in ActionView happen through _render_template, as the ↵José Valim2009-12-311-30/+14
| | | | rendering which comes from ActionController.
* Expose a _render_partial hook as thhe _render_template one and make use of it.José Valim2009-12-312-11/+15
|
* ActionController::Logger should include AbstractController::Logger and sort ↵José Valim2009-12-313-8/+11
| | | | autoloads for easier readability.
* controller_path is required by ActionView, so move it up to ↵José Valim2009-12-316-190/+173
| | | | AbstractController and refactor AbstractController::Layouts.
* Fix new year heisenbugJeremy Kemper2009-12-311-2/+2
|
* Some railties cleanup:Carl Lerche2009-12-312-1/+1
| | | | | | * Rename <framework>/rails.rb -> <framework>/railtie.rb * Rails::Plugin -> Rails::Railtie * Rails::Plugin::Vendored -> Rails::Plugin
* Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rbCarl Lerche2009-12-312-1/+3
|
* Add a /rails.rb for each framework for consistencyCarl Lerche2009-12-312-0/+3
|
* Fix controller runtime testJeremy Kemper2009-12-301-2/+2
|
* Revert "Add config.action_controller.include behavior to plugins."Jeremy Kemper2009-12-301-2/+1
| | | | | | | | This reverts commit 7e8b7f46bfc086a36db996420fbee93348c5268e. Conflicts: railties/lib/rails/plugin.rb
* Partially revert "ActionDispatch should require as little of ActiveSupport ↵Jeremy Kemper2009-12-301-0/+2
| | | | | | as possible" Removes load path change from commit bb153f42e45160c5ef3593c393db5d3c6857fb70.
* Merge commit 'josevalim/arlog'Jeremy Kemper2009-12-301-0/+39
|\
| * Kick AR logging back to life and move ControllerRuntime inside ↵José Valim2009-12-301-0/+39
| | | | | | | | ActiveRecord::Rails.
* | ActionDispatch should require as little of ActiveSupport as possibleCarl Lerche2009-12-301-3/+1
|/
* Use extlib_inheritable_accessor in request_forgery_protection.rb.Carl Lerche2009-12-291-1/+1
| | | For some reason the current class_inheritable_accessor does not play nice with included hooks. class_inheritable_accessor will be revised shortly.
* Make sure evalled method knows where it came fromYehuda Katz2009-12-291-2/+2
|
* Complain if there's no such middlewareJeremy Kemper2009-12-281-2/+3
|