Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 1 | -1/+0 |
| | | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6. | ||||
* | Setup explicit requires for files with exceptions. Removed them from ↵ | Łukasz Strzałkowski | 2010-09-02 | 1 | -0/+1 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | object/try should be required after abstract_unit to have AS in the load path | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | |||||
* | adds missing requires for Object#try | Xavier Noria | 2010-08-09 | 1 | -0/+1 |
| | |||||
* | Consistent routing language | Joshua Peek | 2010-03-30 | 1 | -7/+7 |
| | |||||
* | Don't force singularization of singleton resource names, e.g. /preferences ↵ | Andrew White | 2010-03-15 | 1 | -0/+7 |
| | | | | | | [#4089 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | If IntegrationSession is initialized with an objects that responds to ↵ | Carlhuda | 2010-02-26 | 1 | -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_for | Carlhuda | 2010-02-26 | 1 | -2/+2 |
| | |||||
* | Rename metaclass to singleton_class | Carlhuda | 2010-02-25 | 1 | -2/+2 |
| | |||||
* | WIP: Remove the global router | Carlhuda | 2010-02-25 | 1 | -5/+8 |
| | |||||
* | Remove ActionController::Base.resources_path_names | Carl Lerche | 2010-02-24 | 1 | -9/+10 |
| | |||||
* | Use ActionDispatch::Routing everywhere | Martin Schürrer | 2010-02-21 | 1 | -2/+2 |
| | |||||
* | Respect resources_path_names and :path_names options in new dsl | Joshua Peek | 2010-01-13 | 1 | -21/+21 |
| | |||||
* | optimise_named_routes is unnecessary | Joshua Peek | 2010-01-13 | 1 | -10/+0 |
| | |||||
* | Remove fancy method not allowed resource exceptions since they are | Joshua Peek | 2009-12-11 | 1 | -4/+4 |
| | | | | too much of a hack | ||||
* | New routing dsl | Joshua Peek | 2009-10-20 | 1 | -10/+10 |
| | |||||
* | Group together all the old routing dsl logic | Joshua Peek | 2009-10-20 | 1 | -5/+5 |
| | |||||
* | Move Routing into AD | Joshua Peek | 2009-10-20 | 1 | -6/+6 |
| | |||||
* | Rewrite resource routing tests that are coupled to the router implementation | Joshua Peek | 2009-09-13 | 1 | -2/+3 |
| | |||||
* | Added both the documentation and a test case for the collection path name ↵ | Hugo Peixoto | 2009-08-09 | 1 | -0/+44 |
| | | | | | | | | customization feature. [#1218 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Added routing test for irregular ID requirements and custom member action. | Ruy Asan | 2009-05-01 | 1 | -0/+8 |
| | | | | | | [#2595 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix requirements for additional member/collection routes [#2054 state:resolved] | Mike Gunderloy | 2009-03-14 | 1 | -0/+26 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Revert 5b7527ca "Failing test for routes with member & requirement" [#2054 ↵ | Joshua Peek | 2009-03-13 | 1 | -8/+0 |
| | | | | state:wontfix] | ||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -6/+6 |
| | | | | [#1617 state:resolved] | ||||
* | Ensure shallow routes respects namespace [#1356 state:resolved] | Tom Stuart | 2009-03-07 | 1 | -3/+31 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Failing test for routes with member & requirement [#2054 state:resolved] | Mike Gunderloy | 2009-03-05 | 1 | -0/+8 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Allow routes with a trailing slash to be recognized | Mike Gunderloy | 2009-03-04 | 1 | -2/+10 |
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2039 state:committed] | ||||
* | Removed map.resources :only/:except inheritance | Tarmo Tänav | 2009-02-01 | 1 | -15/+28 |
| | | | | | | | | | | It's very rare for these options to apply identically to nested child resources, and with this inheritance on it's very difficult to have a child resource with more actions than the parent. This reverts commit 2ecec6052f7f290252a9fd9cc27ec804c7aad36c. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1826 state:committed] | ||||
* | Added optimal formatted routes to rails, deprecating the formatted_* ↵ | Aaron Batalion | 2008-11-26 | 1 | -9/+9 |
| | | | | | | methods, and reducing routes creation by 50% [#1359 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Test default singleton resource route to ensure it uses GET. This is ↵ | Geoff Garside | 2008-11-24 | 1 | -0/+10 |
| | | | | | | important if using map.root :resource instead of map.root :resources for some reason. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | MiniTest compat: don't check for test/unit's assertion in particular | Jeremy Kemper | 2008-11-22 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into testing | Jeremy Kemper | 2008-11-15 | 1 | -0/+266 |
|\ | |||||
| * | Make inheritance of map.resources :only/:except options behave more predictably | Tom Stuart | 2008-11-14 | 1 | -0/+26 |
| | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
| * | Fix map.resources to always generate named routes if they're needed | Tom Stuart | 2008-11-13 | 1 | -0/+78 |
| | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
| * | Add :only/:except options to map.resources | Tom Stuart | 2008-11-12 | 1 | -0/+162 |
| | | | | | | | | | | | | | | This allows people with huge numbers of resource routes to cut down on the memory consumption caused by the generated code. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1215 state:committed] | ||||
* | | Move controller assertions from base TestCase to AC:: and AV::TestCase | Jeremy Kemper | 2008-11-07 | 1 | -1/+1 |
|/ | |||||
* | Add support for shallow nesting of routes. [#838 state:resolved] | Pratik Naik | 2008-08-30 | 1 | -25/+109 |
| | | | | | | | | | | | | | | | | | | Adds :shallow option to resource route definition. If true, paths for nested resources which reference a specific member (ie. those with an :id parameter) will not use the parent path prefix or name prefix. Example : map.resources :users, :shallow => true do |user| user.resources :posts end * GET /users/1/posts (maps to PostsController#index action as usual) named route "user_posts" is added as usual. * GET /posts/2 (maps to PostsController#show action as if it were not nested) Additionally, named route "post" is added too. | ||||
* | Accept an array of method symbols for collection/member actions of resources | Brennan Dunn | 2008-08-28 | 1 | -0/+13 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Raise ArgumentError if an invalid method is specified as part of a route's ↵ | Tom Ward | 2008-07-18 | 1 | -0/+20 |
| | | | | | | 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> | ||||
* | Fixed teardown method typo (plus whitespace) | Joshua Peek | 2008-07-11 | 1 | -17/+15 |
| | |||||
* | Refactored and fixed Resources.map_member_actions to make use of custom ↵ | Marcos Arias | 2008-05-06 | 1 | -4/+26 |
| | | | | | | | ActionController::Base.resources_path_names when the option :path_names is not directly specified. Added a specific test for this functionality and fixed assert_restful_routes_for test helper to make use of ActionController::Base.resources_path_names instead of just "new" or "edit". Signed-off-by: Michael Koziarski <michael@koziarski.com> [#111 state:resolved] | ||||
* | Make sure member names aren't mistakenly set to nil when providing :path_names | Eugene Pimenov | 2008-04-23 | 1 | -7/+38 |
| | | | | | | [#19 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Allow alternative values for the 'new' and 'edit' actions in resourceful routes. | Michael Koziarski | 2008-04-12 | 1 | -0/+6 |
| | | | | | | map.resource :schools, :as => 'escuelas', :path_names => { :new => 'nueva' } Closes #11181. [ivanvr] | ||||
* | Introduce map.resources :cards, :as => 'tarjetas' to use a custom resource ↵ | Jeremy Kemper | 2008-02-02 | 1 | -5/+34 |
| | | | | | | name in the URL: cards_path == '/tarjetas'. Closes #10578. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | require abstract_unit directly since test is in load path | Jeremy Kemper | 2008-01-05 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Move ActionController::Routing.optimise_named_routes to ↵ | Rick Olson | 2007-10-03 | 1 | -2/+2 |
| | | | | | | | | ActionController::Base.optimise_named_routes. Now you can set it in the config. ActionController::Routing::DynamicSegment#interpolation_chunk should call #to_s on all values before calling URI.escape. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed that resource namespaces wouldnt stick to all nested resources (closes ↵ | David Heinemeier Hansson | 2007-09-10 | 1 | -0/+32 |
| | | | | | | #9399) [pixeltrix] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7447 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Optimise named route generation when using positional arguments. Closes ↵ | Michael Koziarski | 2007-09-09 | 1 | -0/+12 |
| | | | | | | | | | | | | #9450 [Koz] This change delivers significant performance benefits for the most common usage scenarios for modern rails applications by avoiding the costly trip through url_for. Initial benchmarks indicate this is between 6 and 20 times as fast. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Remove deprecated named routes [pixeltrix] | Tobias Lütke | 2007-09-06 | 1 | -49/+55 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Allow you to set custom :conditions on resource routes. [Rick] | Rick Olson | 2007-07-25 | 1 | -0/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |