aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed that much of DateHelper wouldn't return html_safe? strings [DHH]David Heinemeier Hansson2010-01-081-5/+5
|
* Fixed that fragment caching should return a cache hit as html_safe (or it ↵David Heinemeier Hansson2010-01-071-1/+1
| | | | would all just get escaped) [DHH]
* Ensure that segments in default_url_options also work with format specified.José Valim2010-01-071-2/+2
|
* From now on, parameters defined in default_url_options can be absent from ↵José Valim2010-01-072-21/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-077-211/+216
| | | | 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-073-3/+3
|
* errors in ActionView should not be namespaced as well.José Valim2010-01-072-9/+8
|
* namespace in routes changes both the path and name prefix.José Valim2010-01-061-1/+1
|
* 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-051-0/+1
|
* All router redirect helper to accept a full URI [#3653 state:resolved]Joshua Peek2010-01-051-5/+13
|
* 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-042-30/+0
|
* Default middleware stack needs to be available at configuration timeJoshua Peek2010-01-041-20/+0
|
* Autoload AS test caseJoshua Peek2010-01-043-4/+0
|
* Autoload AC and AV test case classesJoshua Peek2010-01-044-5/+7
|
* @_formats initialization should be AbstractController::Base.José Valim2010-01-043-7/+6
|
* Remove deprecated formatted named routesJosé Valim2010-01-041-8/+0
|
* adding fix for auto linking to master tooZach Brock2010-01-051-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* MergeDavid Heinemeier Hansson2010-01-0310-24/+90
|\
| * Use underscore in notification namespaces.José Valim2010-01-046-10/+10
| |
| * Add notifications to ActionDispatch::ShowExceptions, this can be used as ↵José Valim2010-01-031-2/+22
| | | | | | | | hooks for plugins like ExceptionNotifier.
| * Use namespaces in notifications.José Valim2010-01-036-18/+27
| |
| * 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-021-3/+36
| | | | | | | | 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-031-0/+2
|/ | | | 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.
* 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
|
* 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.
* 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
|
* Require active_support/dependencies/autoload in action_dispatchCarl Lerche2009-12-281-0/+1
|
* Silence some trivial warnings: shadowed local vars, indentation mismatchesJeremy Kemper2009-12-289-202/+197
|
* Ruby 1.9: string is not enumerable, so #exclude? is not availableJeremy Kemper2009-12-271-5/+3
|
* TypoJeremy Kemper2009-12-271-1/+1
|