aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixes namespaced routes [#3673 status:resolved]Joao Carlos2010-01-101-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed that much of DateHelper wouldn't return html_safe? strings [DHH]David Heinemeier Hansson2010-01-081-0/+22
|
* Ensure that segments in default_url_options also work with format specified.José Valim2010-01-071-0/+8
|
* From now on, parameters defined in default_url_options can be absent from ↵José Valim2010-01-072-44/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-073-266/+272
| | | | and ActionController up to AbstractController.
* Use helpers.label instead of views.labels.José Valim2010-01-072-5/+5
|
* errors in ActionView should not be namespaced as well.José Valim2010-01-071-6/+6
|
* namespace in routes changes both the path and name prefix.José Valim2010-01-061-1/+4
|
* redirect in routes takes port into account [#3653 status:resolved]José Valim2010-01-051-0/+12
|
* All router redirect helper to accept a full URI [#3653 state:resolved]Joshua Peek2010-01-051-2/+12
|
* Trash string coercion rack hacksJoshua Peek2010-01-042-41/+0
|
* Autoload AR test caseJoshua Peek2010-01-041-1/+0
|
* Autoload AS test caseJoshua Peek2010-01-041-1/+0
|
* Autoload AC and AV test case classesJoshua Peek2010-01-041-1/+0
|
* Remove deprecated formatted named routesJosé Valim2010-01-041-18/+0
|
* adding fix for auto linking to master tooZach Brock2010-01-051-0/+14
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* 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-031-0/+20
| | | | hooks for plugins like ExceptionNotifier.
* Use namespaces in notifications.José Valim2010-01-034-14/+12
|
* I18n label helper [#745 status:resolved]Carsten Gehling2010-01-022-0/+41
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix new year heisenbugJeremy Kemper2009-12-311-2/+2
|
* Fix controller runtime testJeremy Kemper2009-12-301-2/+2
|
* Kick AR logging back to life and move ControllerRuntime inside ↵José Valim2009-12-301-0/+39
| | | | ActiveRecord::Rails.
* Merge remote branch 'jose/perf'Yehuda Katz2009-12-277-93/+72
|\
| * Remove ActionView inline logging to ActiveSupport::Notifications and create ↵José Valim2009-12-267-93/+72
| | | | | | | | ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened.
* | Added shorthand for match 'products/overview' that expands to match ↵David Heinemeier Hansson2009-12-271-6/+16
| | | | | | | | 'products/overview', :to => 'products#overview', :as => 'products_overview'
* | Expect Rack 1.1Joshua Peek2009-12-261-1/+1
|/
* Fix testsDavid Heinemeier Hansson2009-12-251-2/+2
|
* MergeDavid Heinemeier Hansson2009-12-242-3/+12
|\
| * Allow named_routes to be used with root, and with new DSL short-form.Sam Ruby2009-12-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | The real use case it to make all of the following act the same: root 'store#index', :as => 'store' match '/' => 'store#index', :as => 'store' match '/', :to => 'store#index', :as => 'store' The test case provided deviates from this in order to demonstrate all three forms in a single set of test routes. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Routing: fix that route shorthand shouldn't ignore other options. Raise if ↵Jeremy Kemper2009-12-231-2/+4
| | | | | | | | :as option is given to root method since its name is always 'root'
| * Fix bare string Rack response bodiesJeremy Kemper2009-12-231-2/+2
| |
* | Extract Mapping class from monster match methodDavid Heinemeier Hansson2009-12-241-1/+12
|/
* AD::StatusCodes support is now part of rackJoshua Peek2009-12-221-2/+2
|
* Add test for rootDavid Heinemeier Hansson2009-12-211-0/+9
|
* Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2009-12-211-12/+12
|\
| * reset_session needs to be a real method so flash can override itJoshua Peek2009-12-211-12/+12
| |
* | Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2009-12-216-8/+39
|\|
| * Its now possible to use match 'stuff' => 'what#stuff' instead of using the ↵David Heinemeier Hansson2009-12-201-3/+13
| | | | | | | | :to for simple routes
| * Rename the RenderingController module to just plain RenderingDavid Heinemeier Hansson2009-12-205-5/+5
| |
| * :to => redirect() can take a String using 1.9-style interpolation or proc ↵Yehuda Katz2009-12-201-0/+21
| | | | | | | | that takes the path parameters as a Hash
* | Added cookies.permanent, cookies.signed, and cookies.permanent.signed ↵David Heinemeier Hansson2009-12-201-0/+35
|/ | | | accessor for common cookie actions [DHH]
* Pending tests for AD ResponseJoshua Peek2009-12-171-0/+113
|
* Don't need response prepare!Joshua Peek2009-12-171-8/+0
|
* Added alert/notice from 2-3-stable and refactored redirect_to into just ↵David Heinemeier Hansson2009-12-171-1/+28
| | | | living in Redirector [DHH]
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-8/+7
| | | | adding any to the load path more than once.
* Move route reloading into railtiesJoshua Peek2009-12-141-13/+0
|
* Remove route loading tests since it should be tested by railtiesJoshua Peek2009-12-141-72/+0
|
* Hush loading AR unless it failsJoshua Peek2009-12-141-6/+2
|
* TestProcess belongs in ADJoshua Peek2009-12-122-5/+5
|