Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add AD::Route#to_s | Sam Ruby | 2010-01-20 | 1 | -0/+6 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Define named routes for other non-GET REST actions | Joshua Peek | 2010-01-19 | 1 | -4/+32 |
| | |||||
* | Fix resources_path_names branch which was sending an array as entity. [#3715 ↵ | José Valim | 2010-01-17 | 1 | -34/+25 |
| | | | | status:resolved] | ||||
* | Allow custom controller for resource(s) [#3703 state:resolved] | Joshua Peek | 2010-01-16 | 1 | -1/+1 |
| | |||||
* | Fix singleton resource named routes | Joshua Peek | 2010-01-15 | 1 | -2/+2 |
| | |||||
* | Always join scoped paths with slashes | Joshua Peek | 2010-01-15 | 1 | -11/+17 |
| | |||||
* | Cleanup internal resource macro to use method helper shorthand | Joshua Peek | 2010-01-15 | 1 | -20/+14 |
| | |||||
* | Routing method shorthand shouldn't clobber :to options | Joshua Peek | 2010-01-15 | 1 | -2/+2 |
| | |||||
* | Respect resources_path_names and :path_names options in new dsl | Joshua Peek | 2010-01-13 | 2 | -44/+96 |
| | |||||
* | Ensure optional path scopes are properly handled. | José Valim | 2010-01-14 | 1 | -8/+12 |
| | |||||
* | Add router support for resources :only and :except actions | Joshua Peek | 2010-01-13 | 1 | -16/+38 |
| | |||||
* | Pass :as to resources to change the resource name | Joshua Peek | 2010-01-13 | 1 | -4/+5 |
| | |||||
* | Passing in a crud action overloads the default action instead of creating a | Joshua Peek | 2010-01-13 | 1 | -2/+9 |
| | | | | new member action. | ||||
* | Ensure nested namespaces work as expected. | José Valim | 2010-01-10 | 1 | -7/+4 |
| | |||||
* | Fixes namespaced routes [#3673 status:resolved] | Joao Carlos | 2010-01-10 | 1 | -2/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Ensure that segments in default_url_options also work with format specified. | José Valim | 2010-01-07 | 1 | -2/+2 |
| | |||||
* | From now on, parameters defined in default_url_options can be absent from ↵ | José Valim | 2010-01-07 | 1 | -21/+51 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | named routes. This allows the following setup to work: # app/controllers/application_controller.rb class ApplicationController def default_url_options(options=nil) { :locale => I18n.locale } end end # From your views and controllers: I18n.locale #=> :en users_url #=> "/en/users" users_url(:pl) #=> "/pl/users" user_url(1) #=> "/en/users/1" user_url(:pl, 1) #=> "/pl/users/1" user_url(1, :locale => :pl) #=> "/pl/users/1" If you provide all expected parameters, it still works as previously. But if any parameter is missing, it tries to assign all possible ones with the hash returned in default_url_options or the one passed straight to the named route method. Beware that default_url_options in ApplicationController is not shared with ActionMailer, so you are required to always give the locale in your email views. | ||||
* | namespace in routes changes both the path and name prefix. | José Valim | 2010-01-06 | 1 | -1/+1 |
| | |||||
* | Allow named routes to be debugged. | José Valim | 2010-01-06 | 1 | -23/+20 |
| | |||||
* | Ruby 1.9.1 requires hash given to foormat to contain symbols. | José Valim | 2010-01-06 | 1 | -1/+1 |
| | |||||
* | redirect in routes takes port into account [#3653 status:resolved] | José Valim | 2010-01-05 | 1 | -0/+1 |
| | |||||
* | All router redirect helper to accept a full URI [#3653 state:resolved] | Joshua Peek | 2010-01-05 | 1 | -5/+13 |
| | |||||
* | Remove deprecated formatted named routes | José Valim | 2010-01-04 | 1 | -8/+0 |
| | |||||
* | Ruby 1.9: string is not enumerable, so #exclude? is not available | Jeremy Kemper | 2009-12-27 | 1 | -5/+3 |
| | |||||
* | Typo | Jeremy Kemper | 2009-12-27 | 1 | -1/+1 |
| | |||||
* | Require the enumberable extension from active support because we use #exclude? | David Heinemeier Hansson | 2009-12-27 | 1 | -0/+2 |
| | |||||
* | Added shorthand for match 'products/overview' that expands to match ↵ | David Heinemeier Hansson | 2009-12-27 | 1 | -1/+15 |
| | | | | 'products/overview', :to => 'products#overview', :as => 'products_overview' | ||||
* | rack-mount 0.4 | Joshua Peek | 2009-12-26 | 2 | -20/+20 |
| | |||||
* | The controller key shouldnt be part of the mapping if its not used | David Heinemeier Hansson | 2009-12-25 | 1 | -2/+2 |
| | |||||
* | Merge | David Heinemeier Hansson | 2009-12-24 | 1 | -1/+1 |
|\ | |||||
| * | Allow named_routes to be used with root, and with new DSL short-form. | Sam Ruby | 2009-12-23 | 1 | -8/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | The real use case it to make all of the following act the same: root 'store#index', :as => 'store' match '/' => 'store#index', :as => 'store' match '/', :to => 'store#index', :as => 'store' The test case provided deviates from this in order to demonstrate all three forms in a single set of test routes. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
| * | Routing: fix that route shorthand shouldn't ignore other options. Raise if ↵ | Jeremy Kemper | 2009-12-23 | 1 | -2/+4 |
| | | | | | | | | :as option is given to root method since its name is always 'root' | ||||
| * | Shift more responsibility from application class to its singleton instance. ↵ | Jeremy Kemper | 2009-12-23 | 1 | -1/+1 |
| | | | | | | | | Treat instantiation and boot as separate steps. Use app.config rather than app.configuration. | ||||
* | | Extract Mapping class from monster match method | David Heinemeier Hansson | 2009-12-24 | 1 | -90/+137 |
|/ | |||||
* | Less annoying RoutingError message | Joshua Peek | 2009-12-21 | 1 | -2/+2 |
| | |||||
* | Its now possible to use match 'stuff' => 'what#stuff' instead of using the ↵ | David Heinemeier Hansson | 2009-12-20 | 1 | -3/+7 |
| | | | | :to for simple routes | ||||
* | :to => redirect() can take a String using 1.9-style interpolation or proc ↵ | Yehuda Katz | 2009-12-20 | 1 | -4/+10 |
| | | | | that takes the path parameters as a Hash | ||||
* | Move route reloading into railties | Joshua Peek | 2009-12-14 | 1 | -88/+21 |
| | |||||
* | Fix loading plugin and engine route sets | Joshua Peek | 2009-12-14 | 1 | -5/+20 |
| | |||||
* | "new" and "edit" name routes always need to be prepend to the | Joshua Peek | 2009-12-11 | 1 | -6/+23 |
| | | | | named_route [#3561 state:resolved] | ||||
* | Use rackmounts recognize api and don't piggyback recognize_path on | Joshua Peek | 2009-12-11 | 2 | -21/+30 |
| | | | | top of rack call | ||||
* | Remove fancy method not allowed resource exceptions since they are | Joshua Peek | 2009-12-11 | 1 | -23/+1 |
| | | | | too much of a hack | ||||
* | Kill RouteSet#recognize | Joshua Peek | 2009-12-10 | 1 | -12/+0 |
| | |||||
* | Cleanup generate_extras build/parse mess | Joshua Peek | 2009-12-10 | 1 | -9/+3 |
| | |||||
* | Check block arity passed to routes draw so you don't need to use | Joshua Peek | 2009-12-09 | 1 | -1/+8 |
| | | | | |map| | ||||
* | Tack format onto resource routes | Joshua Peek | 2009-12-08 | 1 | -22/+22 |
| | |||||
* | Remove double scoping blocks and just use one | Joshua Peek | 2009-12-08 | 1 | -28/+24 |
| | |||||
* | Seperate scope level for nesting resources | Joshua Peek | 2009-12-08 | 1 | -8/+16 |
| | |||||
* | Don't use name prefix by itself unless as is an empty string | Joshua Peek | 2009-12-08 | 1 | -1/+1 |
| | |||||
* | Routes added under resource collection should be prefixed with | Joshua Peek | 2009-12-08 | 1 | -1/+1 |
| | | | | resource collection name |