- 27 9月, 2010 1 次提交
-
-
由 thedarkone 提交于
-
- 23 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 18 9月, 2010 1 次提交
-
-
由 Carl Lerche 提交于
Allows specifying blocks to the routeset that will get appended after the RouteSet is drawn.
-
- 09 9月, 2010 2 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
- 05 9月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
-
- 04 9月, 2010 14 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
There were actually 2 problems with this one: * script_name was added to options as a string and then it was used in RouteSet#url_for with usage of <<, which was changing the original script_name * the second issue was with _with_routes method. It was called in RoutesProxy to modify _routes in view_context, but url_helpers in views is just delegating it to controller, so another _with_routes call is needed there
-
由 Piotr Sarnacki 提交于
For view_context we need to initialize RoutesProxy in context of controller, not view, quick fix, I need to dig into it later
-
由 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 提交于
A few examples: url_for Blog::Engine, :posts_path url_for Blog::Engine, @post url_for Blog::Engine, :action => "main", :controller => "index"
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
It's based specifying application's script_name with: Rails.application.default_url_options = {:script_name => "/foo"} default_url_options method is delegated to routes. If router used to generate url differs from the router passed via env it always overwrites :script_name with this value.
-
由 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.
-
- 03 9月, 2010 1 次提交
-
-
由 José Valim 提交于
Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b3.
-
- 02 9月, 2010 1 次提交
-
-
由 Łukasz Strzałkowski 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 21 8月, 2010 1 次提交
-
-
由 Andrew White 提交于
Extend assert_recognizes and assert_generates to support passing full urls as the path argument. This allows testing of routing constraints such as subdomain and host within functional tests. [#5005 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 03 8月, 2010 1 次提交
-
-
由 Samuel Lebeau 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 22 7月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
options could be of any kind of Hash (Hash, HashWithIndifferentAccess or OrderedHash) this way we keep the properties of the options passed as an argument
-
由 Brian Rose 提交于
Fixed a globbed route issue where slashes were being escaped, causing assert_routing to fail. [#5135 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 16 7月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 07 7月, 2010 1 次提交
-
-
由 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>
-
- 06 7月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 04 7月, 2010 1 次提交
-
-
由 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 2 次提交
-
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 José Valim 提交于
-
- 02 7月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 28 6月, 2010 4 次提交
-
-
由 José Valim 提交于
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Andrew White 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Jeremy Kemper 提交于
-
- 27 6月, 2010 1 次提交
-
-
由 Andrew White 提交于
Normalize recall params when the route is not a standard route otherwise :controller and :action may appear in the generated url [#4326 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 26 6月, 2010 1 次提交
-
-
由 Andrew White 提交于
URL fragments should not have safe characters escaped. Ref: Appendix A, http://tools.ietf.org/rfc/rfc3986.txt [#4762 state:resolved] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 08 6月, 2010 1 次提交
-
-
由 wycats 提交于
-