Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Inline code comments for class_eval/module_eval [#1657 state:resolved] | Xavier Noria | 2008-12-28 | 1 | -30/+31 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | When checking for the wrong routing method, ensure the environment is passed ↵ | Joshua Peek | 2008-12-17 | 1 | -1/+1 |
| | | | | to recognize optimize [#1406 state:resolved] | ||||
* | Extract named_helper module_eval so it's easier to override | Jeremy Kemper | 2008-11-29 | 1 | -2/+6 |
| | |||||
* | Added support for multiple routes files and made draw not clear the map so ↵ | David Heinemeier Hansson | 2008-11-26 | 1 | -12/+42 |
| | | | | they can be additive | ||||
* | Merge branch 'master' of git@github.com:rails/rails | Jeremy Kemper | 2008-11-26 | 5 | -2/+48 |
|\ | |||||
| * | Added optimal formatted routes to rails, deprecating the formatted_* ↵ | Aaron Batalion | 2008-11-26 | 5 | -2/+48 |
| | | | | | | | | | | | | methods, and reducing routes creation by 50% [#1359 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | | No need to have #generate and #generate_extras per instance | Jeremy Kemper | 2008-11-26 | 1 | -5/+10 |
|/ | |||||
* | Use autoload instead of explicit requires for ActionController | Joshua Peek | 2008-11-23 | 1 | -0/+2 |
| | |||||
* | Make optimized named routes respect all reserved options and tie it into ↵ | Gabe da Silveira | 2008-11-18 | 2 | -6/+3 |
| | | | | | | UrlRewriter::RESERVED_OPTIONS so it's DRY Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Eliminate excess Regexp creation due to capture counting | Jeremy Kemper | 2008-11-10 | 2 | -4/+26 |
| | |||||
* | Pare down object creation during route building | Jeremy Kemper | 2008-11-10 | 2 | -30/+27 |
| | |||||
* | Don't eval recognize_optimized use __FILE__ and __LINE__ in the optimised ↵ | Aliaksey Kandratsenka | 2008-11-06 | 1 | -1/+1 |
| | | | | | | | | | recognition code. It produces meaningless line numbers. This also easily produces line numbers greater than recognition_optimization.rb have, which causes rcov to trash memory outside of it's coverage counting arrays. [#1319 state:committed] Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Cleaned up route optimisation guard condition generation code as it was ↵ | Tom Lea | 2008-11-01 | 1 | -7/+19 |
| | | | | | | | | getting a little messy. Add additional condition to handle the case where default_url_options is only defined in the controller, not the view. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Thread Safety: Ensure recognize_optimized is immediately written instead of ↵ | Joshua Peek | 2008-10-27 | 1 | -7/+1 |
| | | | | lazily | ||||
* | Allow use of :path_prefix and :name_prefix outside of namespaced routes. ↵ | Tom Stuart | 2008-10-08 | 1 | -3/+1 |
| | | | | | | [#1188 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Remove recognized_optimized method before redefining it | Jeremy Kemper | 2008-09-08 | 1 | -2/+15 |
| | |||||
* | Ensure routing optimizations are cleared when new routes are added [#981 ↵ | Matt Jones | 2008-09-07 | 2 | -2/+11 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Some performance goodness for routing. | Clemens Kofler | 2008-09-03 | 1 | -3/+3 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵ | Jeremy Kemper | 2008-08-31 | 1 | -3/+3 |
| | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb | ||||
* | Fixes optimised named routes generating question mark followed by nothing ↵ | Luke Melia | 2008-08-31 | 1 | -2/+3 |
| | | | | | | | when provided an empty hash as the last argument. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#481 state:committed] | ||||
* | Routes may be restricted to lists of HTTP methods instead of a single method ↵ | Brennan Dunn | 2008-08-28 | 2 | -6/+8 |
| | | | | | | | | or :any. [#407 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Expose Routing::Segment::SAFE_PCHAR list of path characters that don't need ↵ | Jeremy Kemper | 2008-08-04 | 1 | -1/+2 |
| | | | | escaping | ||||
* | Prepare Route#generate and Route#recognize early. Also refactor segments a ↵ | Joshua Peek | 2008-07-28 | 6 | -200/+202 |
| | | | | bit to try to make immutable. | ||||
* | Routing whitespace cleanup | Joshua Peek | 2008-07-28 | 6 | -26/+23 |
| | |||||
* | AbstractRequest.relative_url_root is no longer automatically configured by a ↵ | Joshua Peek | 2008-07-24 | 1 | -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 Ward | 2008-07-18 | 1 | -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änav | 2008-07-03 | 1 | -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 collect | Jeremy Kemper | 2008-06-06 | 1 | -1/+1 |
| | |||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -3/+3 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ensure routing generator works with non-string keys. [#172 state:resolved] | Sven Fuchs | 2008-05-16 | 1 | -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 Roos | 2008-05-10 | 1 | -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 Yeow | 2008-05-05 | 1 | -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 Yeow | 2008-05-04 | 1 | -3/+3 |
| | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#22 state:resolved] | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 3 | -13/+14 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Made the location of the routes file configurable with ↵ | David Heinemeier Hansson | 2008-05-01 | 1 | -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 Hansson | 2008-03-28 | 3 | -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 Koziarski | 2008-01-26 | 1 | -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 Kemper | 2008-01-19 | 2 | -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 Koziarski | 2008-01-17 | 6 | -0/+1309 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |