aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/routing
Commit message (Collapse)AuthorAgeFilesLines
* Expose Routing::Segment::SAFE_PCHAR list of path characters that don't need ↵Jeremy Kemper2008-08-041-1/+2
| | | | escaping
* Prepare Route#generate and Route#recognize early. Also refactor segments a ↵Joshua Peek2008-07-286-200/+202
| | | | bit to try to make immutable.
* Routing whitespace cleanupJoshua Peek2008-07-286-26/+23
|
* AbstractRequest.relative_url_root is no longer automatically configured by a ↵Joshua Peek2008-07-241-1/+1
| | | | HTTP header. It can now be set in your configuration environment with config.action_controller.relative_url_root
* Raise ArgumentError if an invalid method is specified as part of a route's ↵Tom Ward2008-07-181-0/+15
| | | | | | conditions. Also raise an error if HEAD is specified as the method, as rails routes all HEAD requests through the equivalent GET, though doesn't return the response body [#182 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Use :namespace instead of :path_prefix for finding controller. [#544 ↵Tarmo Tänav2008-07-031-2/+1
| | | | | | | | | | state:resolved] :namespace is supposed to be the module where controller exists. :path_prefix can contain anything, including variables, which makes it unsuitable for determining the module for a controller. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure we have an array to collectJeremy Kemper2008-06-061-1/+1
|
* Merge docrails.Pratik Naik2008-05-251-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure routing generator works with non-string keys. [#172 state:resolved]Sven Fuchs2008-05-161-1/+1
| | | | | | | | | | Make sure that (with recent correction to globbed parameter escaping) non-string values can still be passed route generation helpers for globbed route segments. For example, foo_path([1, 2, 3]) should still work for a route like map.foo "*globbed" by implicitely calling to_s on the Fixnums. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Escape globbed parameters in routes correctly.Chris Roos2008-05-101-4/+5
| | | | | | :controller => 'glob', :action=> 'show', :additional => ['foo/bar', 'baz'] Should generate /glob/show/foo%2Fbar/baz not /glob/show/foo/bar/baz
* Allow ActionController::Base#default_url_options to have a default options ↵Cheah Chu Yeow2008-05-051-3/+3
| | | | | | argument of nil. This fixes a bug introduced in [6a6b4392c16c665eb713705f2b38e959a658eeef] which was breaking routing in ActionController::UrlWriter.
* Ensure that default_url_options, if defined, are used in named routes.Cheah Chu Yeow2008-05-041-3/+3
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#22 state:resolved]
* Improve documentation coverage and markupXavier Noria2008-05-023-13/+14
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Made the location of the routes file configurable with ↵David Heinemeier Hansson2008-05-011-6/+6
| | | | config.routes_configuration_file (Scott Fleckenstein) [#88 state:resolved]
* Added support for regexp flags like ignoring case in the :requirements part ↵David Heinemeier Hansson2008-03-283-5/+26
| | | | | | of routes declarations (closes #11421) [NeilW] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make it simpler to make the root route an alias for another route. Closes ↵Michael Koziarski2008-01-261-0/+5
| | | | | | #10818 [bscofield] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance: optimize route recognition. Large speedup for apps with many ↵Jeremy Kemper2008-01-192-13/+162
| | | | | | resource routes. Closes #10835. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Restructure routing into several smaller files. References #10835 [oleganza]Michael Koziarski2008-01-176-0/+1309
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de