aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Refactor resource action scope methodsAndrew White2010-10-081-38/+20
|
* avoid method call to compactAaron Patterson2010-10-041-4/+4
|
* Properly reload routes defined in class definitionPiotr Sarnacki2010-09-301-0/+1
| | | | | | | | | | | | | | | | | Sometimes it's easier to define routes inside Engine or Application class definition (e.g. one file applications). The problem with such case is that if there is a plugin that has config/routes.rb file, it will trigger routes reload on application. Since routes definition for application is not in config/routes.rb file routes_reloader will fail to reload application's routes properly. With this commit you can pass routes definition as a block to routes method, which will allow to properly reload it: class MyApp::Application < Rails::Application routes do resources :users end end
* Allow mounting engines at '/'Piotr Sarnacki2010-09-301-1/+1
| | | | | Without that commit script_name always become '/', which results in paths like //posts/1 instead of /posts/1
* 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
|
* Avoid (@_var ||= nil) pattern by using initialize methods and ensuring ↵José Valim2010-09-291-1/+5
| | | | everyone calls super as expected.
* Merge remote branch 'miloops/warnings'José Valim2010-09-292-1/+2
|\
| * Use redefine_method instead define_method, it may be already defined.Emilio Tagua2010-09-281-1/+1
| |
| * Remove more warnings on variables.Emilio Tagua2010-09-281-0/+1
| |
| * Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-271-8/+2
| |
* | Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-281-8/+2
| |
* | Fix tests on 1.9.2.José Valim2010-09-281-5/+0
| |
* | Properly initialize variables inside the initialize method.José Valim2010-09-271-3/+8
|/
* Define @_routes inside method, makes more sense and will be initialized when ↵Emilio Tagua2010-09-272-2/+1
| | | | | | called anywhere. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-4/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Merge remote branch 'miloops/warnings'José Valim2010-09-273-12/+24
|\ | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/url_for.rb
| * Initialize @_routes if it doesn't exists.Emilio Tagua2010-09-271-0/+1
| |
| * 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 old method before redefining it.Emilio Tagua2010-09-271-0/+2
| |
| * Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-272-11/+19
| |
* | Convert unless/else into if/else.thedarkone2010-09-271-4/+4
| |
* | Hash#empty? is faster than Enumerable#any? when used on a Hash.thedarkone2010-09-271-1/+1
| |
* | options[:action] is very likely to be nil.thedarkone2010-09-271-1/+1
| |
* | No need to create a separate lambda for each call.thedarkone2010-09-271-15/+14
|/
* Refactor routing methods.Emilio Tagua2010-09-222-11/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* 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
|
* Add RouteSet#appendCarl Lerche2010-09-171-4/+12
| | | Allows specifying blocks to the routeset that will get appended after the RouteSet is drawn.