aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/routing
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup route reloading in tests. Prefer with_routing over using ↵Joshua Peek2009-08-161-4/+8
| | | | ActionController::Routing::Routes directly
* Axe "best fit" generation supportJoshua Peek2009-08-151-27/+2
|
* Normalize route generation order: associations, yield block, then own routes.Jeremy Kemper2009-08-151-9/+9
|
* Deprecate router generation "best match" sortingJoshua Peek2009-08-092-6/+30
|
* Added both the documentation and a test case for the collection path name ↵Hugo Peixoto2009-08-091-2/+3
| | | | | | | | customization feature. [#1218 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* path_names could be used to customize collection actions tooBence Nagy2009-08-091-1/+4
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove unused routeset method routes_for_controller_and_action in favour for ↵Gabe da Silveira2009-08-091-7/+0
| | | | | | routes_for [#3023 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Polymorphic routes generates collection URL from model class [#1089 ↵Niklas Holmgren2009-08-081-0/+7
| | | | | | | state:resolved] Signed-off-by: Dan Pickett <dpickett@enlightsolutions.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add nagivational behavior to respond_with.José Valim2009-08-071-11/+10
|
* Merge docrailsPratik Naik2009-07-252-2/+2
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-201-0/+1
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Allow symbols on routes declaration (:controller and :action values) [#2828 ↵Jesús García Sáez2009-07-021-0/+1
| | | | | | state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Accept Symbol for contoller name [#2855 state:resolved]Yehuda Katz + Carl Lerche2009-07-011-1/+1
| | | Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Fix polymorphic_path doesn't modify options hash [#2099 state:resolved]=?utf-8?q?Mislav=20Marohni=C4=87?=2009-06-211-2/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* moves reopening of core classes to add generic stuff from Action Pack to ↵Xavier Noria2009-06-131-49/+4
| | | | | | | | AS/core_ext and adds tests [#2798 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* ActionPack components should no longer have undeclared dependencies.Yehuda Katz + Carl Lerche2009-06-081-2/+2
| | | | | | | * Tests can be run in isolation * Dependencies added * A few tests modified to avoid depending on AS deps not depended on my files they were testing
* Depend on Hash#slice and Object#tryJeremy Kemper2009-05-301-0/+3
|
* Add % to RESERVED_PCHAR [#2574 state:resolved]Eduard Bondarenko2009-05-271-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Cherry-pick core extensionsJeremy Kemper2009-05-132-3/+7
|
* Implement FooController.action(:name)Yehuda Katz2009-05-021-1/+1
| | | | | | * Rails actions are now Rack endpoints, and can be retrieved via FooController.action(name) and called with an env * Updated some tests that relied on the old internal #process/#call implementation
* Bring abstract_controller up to date with rails/masterCarl Lerche & Yehuda Katz2009-04-136-67/+62
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved all the conflicts since 2.3.0 -> HEAD. Following is a list of commits that could not be applied cleanly or are obviated with the abstract_controller refactor. They all need to be revisited to ensure that fixes made in 2.3 do not reappear in 3.0: 2259ecf368e6a6715966f69216e3ee86bf1a82a7 AR not available * This will be reimplemented with ActionORM or equivalent 06182ea02e92afad579998aa80144588e8865ac3 implicitly rendering a js response should not use the default layout [#1844 state:resolved] * This will be handled generically 893e9eb99504705419ad6edac14d00e71cef5f12 Improve view rendering performance in development mode and reinstate template recompiling in production [#1909 state:resolved] * We will need to reimplement rails-dev-boost on top of the refactor; the changes here are very implementation specific and cannot be cleanly applied. The following commits are implicated: 199e750d46c04970b5e7684998d09405648ecbd4 3942cb406e1d5db0ac00e03153809cc8dc4cc4db f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690 e3b166aab37ddc2fbab030b146eb61713b91bf55 ae9f258e03c9fd5088da12c1c6cd216cc89a01f7 44423126c6f6133a1d9cf1d0832b527e8711d40f 0cb020b4d6d838025859bd60fb8151c8e21b8e84 workaround for picking layouts based on wrong view_paths [#1974 state:resolved] * The specifics of this commit no longer apply. Since it is a two-line commit, we will reimplement this change. 8c5cc66a831aadb159f3daaffa4208064c30af0e make action_controller/layouts pick templates from the current instance's view_paths instead of the class view_paths [#1974 state:resolved] * This does not apply at all. It should be trivial to apply the feature to the reimplemented ActionController::Base. 87e8b162463f13bd50d27398f020769460a770e3 fix HTML fallback for explicit templates [#2052 state:resolved] * There were a number of patches related to this that simply compounded each other. Basically none of them apply cleanly, and the underlying issue needs to be revisited. After discussing the underlying problem with Koz, we will defer these fixes for further discussion.
| * Ensure blank path_prefix works as expected [#2122 state:resolved]Andrew Bloom2009-03-091-1/+2
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Remove unused variable [#1451 state:resolved] [Raphaël Valyi]Pratik Naik2009-03-071-1/+0
| |
| * Generating routes with optional format segment does not inherit params ↵Joshua Peek2009-03-041-1/+5
| | | | | | | | format [#2043 state:resolved]
| * Allow routes with a trailing slash to be recognizedMike Gunderloy2009-03-041-1/+1
| | | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2039 state:committed]
| * Ruby 1.9 compat: silence a warning about regexp languagesSam Granieri2009-02-251-1/+5
| | | | | | | | | | | | [#2050 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Fix requirements regexp for path segmentsAndrew White2009-02-221-16/+12
| | | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1772 state:committed]
| * Remove hardcoded number_of_capturesin ControllerSegment to allow regexp ↵Andrew White2009-02-221-4/+0
| | | | | | | | | | | | | | requirements with capturing parentheses Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1887 state:committed]
* | Merge commit 'rails/3-0-unstable'Yehuda Katz2009-01-304-1/+1092
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/base.rb actionpack/lib/action_dispatch/http/mime_type.rb actionpack/lib/action_dispatch/http/request.rb actionpack/lib/action_view/base.rb actionpack/lib/action_view/paths.rb actionpack/test/controller/session/cookie_store_test.rb actionpack/test/dispatch/rack_test.rb actionpack/test/dispatch/request_test.rb
| * | Move HTTP libs and middleware into ActionDispatch componentJoshua Peek2009-01-271-1/+1
| | |
| * | Reorganize ActionController folder structureJoshua Peek2009-01-273-0/+1094
| |/
| * Fix formatted_* deprecation messageJeremy Kemper2008-12-301-2/+2
| |
* | Fix formatted_* deprecation messageJeremy Kemper2009-01-011-2/+2
|/
* Make router and controller classes better rack citizensJoshua Peek2008-12-281-0/+6
|
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-30/+31
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* When checking for the wrong routing method, ensure the environment is passed ↵Joshua Peek2008-12-171-1/+1
| | | | to recognize optimize [#1406 state:resolved]
* Extract named_helper module_eval so it's easier to overrideJeremy Kemper2008-11-291-2/+6
|
* Added support for multiple routes files and made draw not clear the map so ↵David Heinemeier Hansson2008-11-261-12/+42
| | | | they can be additive
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2008-11-265-2/+48
|\
| * Added optimal formatted routes to rails, deprecating the formatted_* ↵Aaron Batalion2008-11-265-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 instanceJeremy Kemper2008-11-261-5/+10
|/
* Use autoload instead of explicit requires for ActionControllerJoshua Peek2008-11-231-0/+2
|
* Make optimized named routes respect all reserved options and tie it into ↵Gabe da Silveira2008-11-182-6/+3
| | | | | | UrlRewriter::RESERVED_OPTIONS so it's DRY Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Eliminate excess Regexp creation due to capture countingJeremy Kemper2008-11-102-4/+26
|
* Pare down object creation during route buildingJeremy Kemper2008-11-102-30/+27
|
* Don't eval recognize_optimized use __FILE__ and __LINE__ in the optimised ↵Aliaksey Kandratsenka2008-11-061-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 Lea2008-11-011-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 Peek2008-10-271-7/+1
| | | | lazily
* Allow use of :path_prefix and :name_prefix outside of namespaced routes. ↵Tom Stuart2008-10-081-3/+1
| | | | | | [#1188 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Remove recognized_optimized method before redefining itJeremy Kemper2008-09-081-2/+15
|