aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
Commit message (Collapse)AuthorAgeFilesLines
* Avoid potentially expensive inspect call in router. [#4491 state:resolved]Samuel Lebeau2010-08-031-3/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* options could be of any kind of Hash (Hash, HashWithIndifferentAccess or ↵Santiago Pastorino2010-07-211-1/+1
| | | | OrderedHash) this way we keep the properties of the options passed as an argument
* Fixed a globbed route issue where slashes were being escaped, causing ↵Brian Rose2010-07-211-1/+2
| | | | | | assert_routing to fail. [#5135 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Bump up to rack-mount 0.6.9 and rack-mount-0.6.6.pre removed from ↵Santiago Pastorino2010-07-151-3/+1
| | | | action_dispatch vendor
* When a dynamic :controller segment is present in the path add a Regexp ↵Andrew White2010-07-071-4/+2
| | | | | | | | | | | constraint that allow matching on multiple path segments. Using a namespace block isn't compatible with dynamic routes so we raise an ArgumentError if we detect a :module present in the scope. [#5052 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Recognize should also work with route is wrapped in a constraint.José Valim2010-07-061-0/+2
|
* Fixes for "router" and "routes" terminologyWincent Colaiuta2010-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f7ba614c2db improved the internal consistency of the different means of accessing routes, but it introduced some problems at the level of code comments and user-visible strings. This commit applies fixes on three levels: Firstly, we remove or replace grammatically invalid constructs such as "a routes" or "a particular routes". Secondly, we make sure that we always use "the router DSL" or "the router syntax", because this has always been the official terminology. Finally, we make sure that we only use "routes" when referring to the application-specific set of routes that are defined in the "config/routes.rb" file, we use "router" when referring on a more abstract level to "the code in Rails used to handle routing", and we use "routing" when we need an adjective to apply to nouns such as "url_helpers. Again this is consistent with historical practice and other places in the documentation. Note that this is not a sweep over the entire codebase to ensure consistent usage of language; it is just a revision of the changes introduced in commit f7ba614c2db. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactor recall parameter normalization [#5021 state:resolved]Andrew White2010-07-031-16/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix routes with :controller segment when namespaced [#5034 state:resolved]José Valim2010-07-021-17/+33
|
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Tidy up valid conditions in router a bit.José Valim2010-06-281-2/+4
|
* Add :controller and :action to the list of valid conditionsAndrew White2010-06-281-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove invalid conditions from route [#4989 state:resolved]Andrew White2010-06-281-2/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Vendor unreleased rack-mount 0.6.6.pre dependencyJeremy Kemper2010-06-271-1/+3
|
* Normalize recall params when the route is not a standard route otherwise ↵Andrew White2010-06-271-3/+26
| | | | | | :controller and :action may appear in the generated url [#4326 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* URL fragments should not have safe characters escaped. Ref: Appendix A, ↵Andrew White2010-06-251-1/+1
| | | | | | | | http://tools.ietf.org/rfc/rfc3986.txt [#4762 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make named helpers unprotected without becoming actions [#4696 state:resolved]wycats2010-06-071-1/+4
|
* Optimize LookupContextwycats2010-06-041-3/+10
|
* No need to unescape params twice if we came from Rack::Mountwycats2010-06-041-7/+7
|
* RouteSet does not raise ActionController::RoutingError when no routes match ↵Carl Lerche2010-04-301-5/+0
| | | | anymore. Instead, it follows the X-Cascade convention. ShowExceptions checks for X-Cascade so that the routing error page can still be displayed.
* add missing requires to Rescuable and RouteSet [#4415 state:committed]Mislav Marohnić2010-04-161-0/+1
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* * 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
|