- 04 9月, 2010 6 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
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)
-
由 Piotr Sarnacki 提交于
* 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
-
由 Piotr Sarnacki 提交于
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
-
由 Piotr Sarnacki 提交于
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.
-
- 01 9月, 2010 1 次提交
-
-
由 Andrew White 提交于
Move implicit nested call before options handling so that nested constraints work [#5513 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 29 8月, 2010 1 次提交
-
-
由 Joost Baaij 提交于
-
- 25 8月, 2010 5 次提交
-
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 José Valim 提交于
-
由 José Valim 提交于
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.
-
由 José Valim 提交于
-
由 José Valim 提交于
-
- 24 8月, 2010 4 次提交
-
-
由 Santiago Pastorino 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
Fix a bug where symbols and strings were not behaving the same in the router. [#5431 state:resolved]
-
由 Andrew White 提交于
When custom resource actions are specified using strings add the default name and action if the string is a valid ruby method name. [#5431 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 23 8月, 2010 1 次提交
-
-
由 Andrew White 提交于
Cache the symbolized path parameters using a instance variable in the request object rather than the environment hash. This it to prevent stale parameters in later routing constraints/redirects as only the normal path parameters are set by Rack::Mount. Also if a constraint proc arity is more than one, pass the symbolized path parameters as the first argument to match redirect proc args and provide easier access. [#5157 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 21 8月, 2010 1 次提交
-
-
由 Nick Sieger 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 20 8月, 2010 4 次提交
-
-
由 Andrew White 提交于
Don't add the standard https port when using redirect in routes.rb and ensure that request.scheme returns https when using a reverse proxy. [#5408 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Andrew White 提交于
Move regexps in options hash to :constraints hash so that they are pushed into the scope [#5208 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Andrew White 提交于
Move edit route before show route so that it will have precedence if the :id parameter allows slashes [#5409 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 19 8月, 2010 1 次提交
-
-
由 Javier Martín 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 18 8月, 2010 1 次提交
-
-
由 Andre Arko 提交于
-
- 09 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
adds URL to the body generated by the redirect macro in the routes mapper as per the RFC, extracts common test pattern into a test macro, adds a test to cover the :status option
-
- 13 7月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 12 7月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 07 7月, 2010 2 次提交
-
-
由 Andrew White 提交于
When a dynamic :controller segment is present in the path add a Regexp constraint that allow matching on multiple path segments. Using a namespace block isn't compatible with dynamic routes so we raise an ArgumentError if we detect a :module present in the scope. [#5052 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Andrew White 提交于
1. Don't inherit when specified as an option on a resource 2. Don't push into scope when specified as an option on a resource 2. Resources pull in :only or :except options from scope 3. Either :only or :except in nested scope overwrites parent scope [#5048 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 06 7月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 04 7月, 2010 2 次提交
-
-
由 Andrew White 提交于
Refactor resource options and scoping. Resource classes are now only responsible for controlling how they are named. All other options passed to resources are pushed out to the scope. Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Wincent Colaiuta 提交于
Commit f7ba614c improved the internal consistency of the different means of accessing routes, but it introduced some problems at the level of code comments and user-visible strings. This commit applies fixes on three levels: Firstly, we remove or replace grammatically invalid constructs such as "a routes" or "a particular routes". Secondly, we make sure that we always use "the router DSL" or "the router syntax", because this has always been the official terminology. Finally, we make sure that we only use "routes" when referring to the application-specific set of routes that are defined in the "config/routes.rb" file, we use "router" when referring on a more abstract level to "the code in Rails used to handle routing", and we use "routing" when we need an adjective to apply to nouns such as "url_helpers. Again this is consistent with historical practice and other places in the documentation. Note that this is not a sweep over the entire codebase to ensure consistent usage of language; it is just a revision of the changes introduced in commit f7ba614c. Signed-off-by: NWincent Colaiuta <win@wincent.com> Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 03 7月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 02 7月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 30 6月, 2010 2 次提交
-
-
由 José Valim 提交于
* Allow to use the get :symbol shortcut outside resources scopes as well; * Fix a bug where :action was not being picked from given options; * Giving :as option inside a resource now changes just the relative name instead of the full name;
-
由 José Valim 提交于
-
- 28 6月, 2010 1 次提交
-
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 26 6月, 2010 2 次提交
-
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Paul Barry 提交于
Fixed normalize_path in Routing::Mapper to handle optional prefix segments with static and dynamic parts Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-