- 03 5月, 2014 3 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 02 5月, 2014 3 次提交
-
-
由 Aaron Patterson 提交于
I think this is wrong, but it gets the build passing for now. We should always add options, but we need to make more guarantees about how the underlying url helper is called
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
if you want options, don't mix them with the first hash, just pass them all in with the second hash
-
- 01 5月, 2014 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 13 6月, 2013 1 次提交
-
-
由 wangjohn 提交于
concerning the options that it inherits from +url_for+. The way that +polymorhpic_url+ is built allows it to have options like +:anchor+, +:script_name+, etc. but this is currently not documented.
-
- 02 12月, 2012 1 次提交
-
-
由 Alvaro Pereyra 提交于
-
- 01 11月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 05 8月, 2012 2 次提交
-
-
由 Andrew White 提交于
Passing options as the last value in an array doesn't work with form_for. This reverts commit 61c8a4d9.
-
由 Andrew White 提交于
Passing options as the last value in an array doesn't work with form_for. This reverts commit 6be564c7.
-
- 04 8月, 2012 2 次提交
-
-
由 Andrew White 提交于
Rather than keep the url options in record_or_hash_or_array, extract it and reverse merge with options as it may contain important private keys like `:routing_type`. Closes #7259
-
由 Romain Tribes 提交于
Generating an URL with an array of records is now able to build a query string if the last item of the array is a hash.
-
- 01 7月, 2012 1 次提交
-
-
由 Guillermo Iguaran 提交于
ActiveModel is used in ActionPack for ActiveModel::Naming for a few, mostly optional aspects of ActionPack related to automatically converting an ActiveModel compliant object into a key for params and routing. It uses only three methods of ActiveModel (ActiveModel::Naming.route_key, ActiveModel::Naming.singular_route_key and ActiveModel::Naming.param_key).
-
- 01 6月, 2012 1 次提交
-
-
由 José Valim 提交于
Correct the use of to_model in polymorphic routing
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 30 4月, 2012 1 次提交
-
-
由 Mark Rushakoff 提交于
Also correctly indent its example code.
-
- 09 12月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 25 7月, 2011 1 次提交
-
-
由 thedarkone 提交于
This brings back the ability to overwrite/extend url generating methods in application heleprs.
-
- 03 7月, 2011 1 次提交
-
-
由 Damien Mathieu 提交于
This fixes the problem of having a non-explicit message when the :location option is not provided in respond_with.
-
- 18 12月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 27 9月, 2010 2 次提交
-
-
由 thedarkone 提交于
-
由 thedarkone 提交于
-
- 04 9月, 2010 6 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
Add possibility to explicitly call engine's routes through polymorphic_routes, for example: polymorphic_url([blog, @post])
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
This change allows using namespaced models with polymorphic_url, in the way that you would use them without namespace. Let's say that you have Blog::Post model in namespaced Engine. When you use polymorphic_path with Blog::Post instances, like in form_for(@post), it will look for blog_posts_path named url helper. As we are inside Blog::Engine, it's annoying to always use the prefix. With this commit, blog_ prefix will be removed and posts_path will be called.
-
由 Piotr Sarnacki 提交于
A few examples: url_for Blog::Engine, :posts_path url_for Blog::Engine, @post url_for Blog::Engine, :action => "main", :controller => "index"
-
- 29 8月, 2010 2 次提交
-
-
由 Joost Baaij 提交于
-
由 yury 提交于
1. use map instead of inject 2. use [].join("_") instead of '<<'. It is a little bit faster for ruby 1.9.2 and x2 faster for ruby 1.8.7. http://gist.github.com/548143 [#5450 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 21 7月, 2010 2 次提交
-
-
由 Piotr Sarnacki 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Piotr Sarnacki 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-