aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
Commit message (Collapse)AuthorAgeFilesLines
...
| * See the scope method for documentation for namespace's shallow_path optionRyan Bigg2010-11-131-0/+3
| |
| * Add documentation for the mount method in ActionDispatch's MapperRyan Bigg2010-11-131-0/+17
| |
| * Fix indentation for :as option documentation on the namespace methodRyan Bigg2010-11-071-4/+4
| |
| * Document the :shallow_path option for scopeRyan Bigg2010-11-071-0/+19
| |
| * Indent final comment for :path optionRyan Bigg2010-11-071-1/+1
| |
| * Indent code example for :as optionRyan Bigg2010-11-071-3/+3
| |
| * Document the :as option for the scope methodRyan Bigg2010-11-071-0/+10
| |
| * Space between module option documentation and path documentationRyan Bigg2010-11-071-0/+1
| |
| * Fix indentation on comment for :path optionRyan Bigg2010-11-071-1/+1
| |
| * Document the :as option for the namespace methodRyan Bigg2010-11-071-0/+8
| |
| * Document the :module option for namespaceRyan Bigg2010-11-071-0/+15
| |
| * Document the :path option for namespaceRyan Bigg2010-11-071-0/+11
| |
| * Begin to document the namespace method for AD's MapperRyan Bigg2010-11-071-0/+15
| |
| * Document the controller method for AD's MapperRyan Bigg2010-11-071-0/+6
| |
| * Document the defaults methodRyan Bigg2010-11-071-0/+5
| |
| * Document the :module and :path options for the scope method.Ryan Bigg2010-11-071-4/+13
| |
| * Separate comments and examples with "Examples" header.Ryan Bigg2010-11-071-0/+2
| |
| * Fix where the documentation says "photos", but the example shows "posts" or ↵Ryan Bigg2010-11-071-4/+4
| | | | | | | | "comments" by switching both to simply "posts"
| * Add further documentation + examples for the get, post, put and delete ↵Ryan Bigg2010-11-071-1/+21
| | | | | | | | methods in ActionDispatch::Routing::Mapper::HttpHelpers
* | Add additional HTTP request methods from the following RFCs:Andrew White2010-11-021-2/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | * Hypertext Transfer Protocol -- HTTP/1.1 http://www.ietf.org/rfc/rfc2616.txt) * HTTP Extensions for Distributed Authoring -- WEBDAV http://www.ietf.org/rfc/rfc2518.txt * Versioning Extensions to WebDAV http://www.ietf.org/rfc/rfc3253.txt * Ordered Collections Protocol (WebDAV) http://www.ietf.org/rfc/rfc3648.txt * Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol http://www.ietf.org/rfc/rfc3744.txt * Web Distributed Authoring and Versioning (WebDAV) SEARCH http://www.ietf.org/rfc/rfc5323.txt * PATCH Method for HTTP http://www.ietf.org/rfc/rfc5789.txt [#2809 state:resolved] [#5895 state:resolved]
* Refactor resource action scope methodsAndrew White2010-10-081-38/+20
|
* avoid method call to compactAaron Patterson2010-10-041-4/+4
|
* Use .find here as it is simpler and faster.José Valim2010-09-301-1/+1
|
* avoid creating a block if possibleAaron Patterson2010-09-291-2/+2
|
* fixing regexp warningsAaron Patterson2010-09-291-1/+1
|
* Don't try to interpolate string if there's no interpolation point at all.Emilio Tagua2010-09-291-1/+1
|
* Ensure that named routes do not overwrite previously defined routes.José Valim2010-09-291-10/+13
|
* Remove warning "too many arguments for format string" when interpolating ↵Emilio Tagua2010-09-271-1/+1
| | | | with empty hash.
* Initialize @as before plural method is called.Emilio Tagua2010-09-271-0/+1
|
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-9/+9
|
* Raise ArgumentError instead of normalizing controller name when there is a ↵Andrew White2010-09-181-1/+5
| | | | leading slash [#5651 state:resolved]
* Remove leading slash from controller [#5651 state:resolved]Andrew White2010-09-181-1/+1
|
* Remove a few tests from old router that do not make sense with the new one.José Valim2010-09-051-21/+3
|
* Ported missing functionality from Rails 2.3.x, raise error on wrong regexps ↵Piotr Sarnacki2010-09-051-0/+9
| | | | in :constraints in routes
* raise error on invalid HTTP methods or :head passed with :via in routesPiotr Sarnacki2010-09-051-0/+9
|
* Implemented resources :foos, :except => :all optionPiotr Sarnacki2010-09-051-2/+11
|
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-051-6/+1
|
* Implemented RouteSet#default_scope, which allows to set the scope for the ↵Piotr Sarnacki2010-09-031-0/+6
| | | | entire routes object
* Add Rails::Railtie.railtie_name method to allow setting custom name for railtiePiotr Sarnacki2010-09-031-2/+7
|
* Add mounted_helpers to routesPiotr Sarnacki2010-09-031-2/+3
| | | | | | | | | | | | | | | | mounted_helpers are a bit similar to url_helpers. They're automatically included in controllers for Rails.application and each of mounted Engines. Mounted helper allows to call url_for and named helpers for given application. Given Blog::Engine mounted as blog_engine, there are 2 helpers defined: app and blog_engine. You can call routes for app and engine using those helpers: app.root_url app.url_for(:controller => "foo") blog_engine.posts_path blog_engine.url_for(@post)
* Routes refactoring:Piotr Sarnacki2010-09-031-2/+1
| | | | | | | * added more tests for prefix generation * fixed bug with generating host for both prefix and url * refactored url_for method * organized tests for prefix generation
* Allow to generate Application routes inside EnginePiotr Sarnacki2010-09-031-1/+1
| | | | | | This requires knowledge about original SCRIPT_NAME and the parent router. It should be pass through the env as ORIGIAL_SCRIPT_NAME and action_dispatch.parent_routes
* Use env['action_dispatch.routes'] to determine if we should generate prefix ↵Piotr Sarnacki2010-09-031-0/+27
| | | | | | | | | | or not. This technique is here to allow using routes from Engine in Application and vice versa. When using Engine routes inside Application it should generate prefix based on mount point. When using Engine routes inside Engine it should use env['SCRIPT_NAME']. In any other case it should generate prefix as env should not be even available.
* Move implicit nested call before options handling so that nested constraints ↵Andrew White2010-09-011-9/+7
| | | | | | work [#5513 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Expanded routing documentation with current best practicesJoost Baaij2010-08-291-0/+169
|
* Use nested scope for routes defined at the :resources scope level (as in ↵Andrew White2010-08-241-5/+6
| | | | | | Rails 2.3) Signed-off-by: José Valim <jose.valim@gmail.com>
* Allow format to be skipped. This is used internally by mount.José Valim2010-08-241-2/+5
|
* Finally fix the bug where symbols and strings were not having the same ↵José Valim2010-08-241-67/+46
| | | | | | | behavior in the router. If you were using symbols before for methods like match/get/post/put/delete, it is likely that this commit will break your routes. Everything should behave the same if you are using strings, if not, please open up a ticket.
* Ensure shortcuts inside resources also generates helpers.José Valim2010-08-241-48/+39
|
* Fix how routes inside namespaces are generated.José Valim2010-08-241-1/+1
|