aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
Commit message (Collapse)AuthorAgeFilesLines
* * Change the object used in routing constraints to be an instance ofwycats2010-04-031-3/+7
| | | | | | | | | | | ActionDispatch::Request rather than Rack::Request. * Changed ActionDispatch::Request#method to return a String, to be compatible with the Rack::Request superclass. * Changed ActionDispatch::Request#method to return the original method in the case of methodoverride and #request_method not to, to be compatible with Rack::Request
* Remove routing implementation details from RDocAndrew White2010-03-311-2/+2
|
* Protect routes again so they don't end up as actions. We need a better ↵wycats2010-03-231-0/+1
| | | | solution than this.
* We seem to have removed the URL helpers from ActionView subclasses...wycats2010-03-181-0/+1
|
* Install url helpers on module instance so they can be accessedJoshua Peek2010-03-171-5/+13
| | | | globally
* Do not always include the named URL helpers into AC::Base and AV::Base.Carl Lerche2010-03-161-1/+0
|
* Make RouteSet#finalize! a NOOP if it's been called already. Call finalize! ↵Carl Lerche2010-03-161-0/+5
| | | | the first time call() and url_for() are called if the RouteSet has not been finalized yet.
* skip_relative_url_root url_for option is deadJoshua Peek2010-03-091-1/+1
|
* Allow default_url_options to be set on route setJoshua Peek2010-03-091-0/+4
|
* RouteSet#rewrite => url_forJoshua Peek2010-03-091-2/+1
|
* Unused RouteSet#url_for is hogging a good method nameJoshua Peek2010-03-091-13/+4
|
* Move AC::UrlRewriter onto route setJoshua Peek2010-03-091-0/+56
|
* Refactor the RouteSet so it uses a Generator object instead of one huge method.wycats2010-03-091-87/+109
|
* Remove outdated, distracting commented codeJeremy Kemper2010-03-081-25/+0
|
* Add support for mount RackApp, :at => "/sprockets" with a shorthand of mount ↵Carlhuda2010-03-081-2/+2
| | | | | | | | | | Sprockets => "/sprockets". This is different from the match syntax in that it cannot be used for controller/action and it does not assume an anchor at the end of the match. For instance, in the above example, if the client asked for "/sprockets/foo.js", the Sprockets app would have a SCRIPT_NAME of "/sprockets" and PATH_INFO of "/foo.js".
* Remove the ability to set the mountpoint when initializing a route set.Carl Lerche2010-03-041-4/+3
|
* Tweak out url_for uses :script_name and add some testsCarl Lerche2010-03-041-6/+6
|
* Have ActionDispatch::Routing::RouteSet.new ready to receive routes as is.Carl Lerche2010-03-041-0/+1
|
* Get rid of relative_url_path in favor of respecting SCRIPT_NAME. Also added ↵Carlhuda2010-03-041-1/+4
| | | | a way to specify a default SCRIPT_NAME when generating URLs out of the context of a request.
* Remove implicit controller namespacing from new dslJoshua Peek2010-02-281-22/+2
|
* If IntegrationSession is initialized with an objects that responds to ↵Carlhuda2010-02-261-1/+0
| | | | #routes, automatically extend the URL helpers from the RouteSet onto it
* Rename named_url_helpers to url_helpers and url_helpers to url_forCarlhuda2010-02-261-6/+5
|
* Continued effort to deglobalize the routerCarlhuda2010-02-251-18/+5
|
* WIP: Remove the global routerCarlhuda2010-02-251-0/+30
|
* Merge master.José Valim2010-02-171-1/+1
|\
| * rack-mount 0.5 supportJoshua Peek2010-02-151-1/+1
| |
* | Make Railties tests green again.José Valim2010-02-171-7/+12
| |
* | Do not swallow controller loading errors unless required.José Valim2010-02-161-10/+4
|/
* Routes should not swallow all NameErrors [#3862 status:resolved].José Valim2010-02-061-1/+2
|
* Ensure namespaced controllers in engines work.José Valim2010-01-241-21/+7
|
* Respect resources_path_names and :path_names options in new dslJoshua Peek2010-01-131-2/+9
|
* 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-071-21/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Allow named routes to be debugged.José Valim2010-01-061-23/+20
|
* Remove deprecated formatted named routesJosé Valim2010-01-041-8/+0
|
* rack-mount 0.4Joshua Peek2009-12-261-1/+1
|
* Shift more responsibility from application class to its singleton instance. ↵Jeremy Kemper2009-12-231-1/+1
| | | | Treat instantiation and boot as separate steps. Use app.config rather than app.configuration.
* Less annoying RoutingError messageJoshua Peek2009-12-211-2/+2
|
* Move route reloading into railtiesJoshua Peek2009-12-141-88/+21
|
* Fix loading plugin and engine route setsJoshua Peek2009-12-141-5/+20
|
* Use rackmounts recognize api and don't piggyback recognize_path onJoshua Peek2009-12-111-20/+29
| | | | top of rack call
* Remove fancy method not allowed resource exceptions since they areJoshua Peek2009-12-111-23/+1
| | | | too much of a hack
* Kill RouteSet#recognizeJoshua Peek2009-12-101-12/+0
|
* Cleanup generate_extras build/parse messJoshua Peek2009-12-101-9/+3
|
* Check block arity passed to routes draw so you don't need to useJoshua Peek2009-12-091-1/+8
| | | | |map|
* Use to_query in route query string generationJoshua Peek2009-12-021-24/+1
|
* Move controller namespace tracking into route set so it getsJoshua Peek2009-12-021-2/+34
| | | | reloaded in dev mode
* Stop escaping "[]" in query stringJoshua Peek2009-12-021-3/+1
|
* Fork rack build nested query to support to_paramJoshua Peek2009-12-021-2/+43
|
* Simply track controller namespaces instead of a complete list ofJoshua Peek2009-12-011-4/+6
| | | | possible controllers to route to