- 03 4月, 2018 1 次提交
-
-
由 T.J. Schuck 提交于
[ci skip]
-
- 08 3月, 2018 2 次提交
-
-
由 Andrew White 提交于
-
由 Andrew White 提交于
[ci skip]
-
- 07 3月, 2018 1 次提交
-
-
由 bogdanvlviv 提交于
This method was added by #28462 but marked as private api. Since `route_for` looks good in pair with `ActionDispatch::Routing::Mapper::CustomUrls#direct` let's make it as public api. We use it in https://github.com/rails/rails/blob/e83575ff533690db86c92447a539d76b648e9fed/activestorage/config/routes.rb Closes #31417
-
- 23 11月, 2017 1 次提交
-
-
由 T.J. Schuck 提交于
[ci skip]
-
- 26 8月, 2017 1 次提交
-
-
由 Yoshiyuki Hirano 提交于
-
- 29 7月, 2017 1 次提交
-
-
由 Kir Shatrov 提交于
-
- 02 7月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
This reverts commit 3420a145, reversing changes made to afb66a5a.
-
- 01 7月, 2017 1 次提交
-
-
由 Kir Shatrov 提交于
-
- 19 4月, 2017 1 次提交
-
-
由 Rafael Mendonça França 提交于
Since this protection is now in Parameters we can use it instead of reimplementing again.
-
- 18 3月, 2017 2 次提交
-
-
由 Andrew White 提交于
Action View overrides `url_for` in the view context to render paths by default when using `url_for` and this means that direct route helpers don't get the full url when called with the url suffix. To fix this always call the original `url_for`.
-
由 Andrew White 提交于
Not all requirements can be expressed in terms of polymorphic url options so add a `route_for` method that allows calling another direct route (or regular named route) which a set of arguments, e.g: resources :buckets direct :recordable do |recording| route_for(:bucket, recording.bucket) end direct :threadable do |threadable| route_for(:recordable, threadable.parent) end This maintains the context of the original caller, e.g. threadable_path(threadable) # => /buckets/1 threadable_url(threadable) # => http://example.com/buckets/1
-
- 14 3月, 2017 1 次提交
-
-
由 Hrvoje Šimić 提交于
-
- 24 12月, 2016 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 07 8月, 2016 1 次提交
-
-
由 Xavier Noria 提交于
-
- 27 4月, 2016 1 次提交
-
-
由 Derek Prior 提交于
I always appreciate having a bit more information as to why something is now an error. We can use this error to tell people why what they were previously doing is insecure and give them hints on how to fix it. Signed-off-by: NKasper Timm Hansen <kaspth@gmail.com>
-
- 15 2月, 2016 1 次提交
-
-
由 Abhishek Jain 提交于
-
- 15 12月, 2015 1 次提交
-
-
由 Jean Boussier 提交于
-
- 07 10月, 2015 1 次提交
-
-
由 tanmay3011 提交于
-
- 05 9月, 2015 1 次提交
-
-
由 Bernerd Schaefer 提交于
The `url_for` methods in `actionpack` and `actionview` now make a copy of the provided options before generating polymorphic paths or URLs. The bug in the previous behavior is most noticeable in a case like: url_options = [:new, :post, param: 'value'] if current_page?(url_options) css_class = "active" end link_to "New Post", url_options, class: css_class
-
- 15 7月, 2015 1 次提交
-
-
由 Prem Sichanugrist 提交于
This is another take at #14384 as we decided to wait until `master` is targeting Rails 5.0. This commit is implementation-complete, as it guarantees that all the public methods on the hash-inherited Parameters are still working (based on test case). We can decide to follow-up later if we want to remove some methods out from Parameters.
-
- 01 7月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
Clarify the `url_for` usage in mailers. Re-add the documentation about `url_for` and Route's path parameters, first introduced by 5c4f1859. This was reported on #15097 and until it is decided to deprecate it or not, I believe the documentation should exist.
-
- 02 3月, 2015 1 次提交
-
-
由 Aaron Patterson 提交于
_generate_paths_by_default wasn't used in AD::Routing::UrlFor, so we should be able to move it where it is used in AV::Routing
-
- 25 11月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
-
- 29 7月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
this caching doesn't increase performance, but does increase complexity. remove it for now and find better ways to speed up this code.
-
- 18 7月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
this allows us to avoid 2 hash allocations per named helper definition, also we can avoid a `merge` and `delete`.
-
- 13 5月, 2014 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 15 11月, 2013 1 次提交
-
-
由 Andrey Ognevsky 提交于
-
- 23 9月, 2013 1 次提交
-
-
由 Earl J St Sauver 提交于
The documentation is showing the link_to method as just returning the contents of the url_for method. It should be returning an "<a>" tag with the correct href set.
-
- 17 12月, 2012 1 次提交
-
-
由 Ivan Vanyak 提交于
-
- 01 11月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 28 8月, 2012 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Piotr Sarnacki 提交于
ActionDispatch::Routing::UrlFor was always required in UrlHelpers. This was changed by splitting previous implementation of UrlHelper into 2 modules: ActionView::Helpers::UrlHelper and ActionView::Routing::UrlHelper. The former one keeps only basic implementation of url_for. The latter adds features that allow to use routes and is only required when url_helpers or mounted_helpers are required.
-
- 27 7月, 2012 1 次提交
-
-
由 Anatoly Makarevich 提交于
-
- 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.
-
- 15 5月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 03 5月, 2012 1 次提交
-
-
由 Anuj Dutta 提交于
-
- 09 4月, 2012 1 次提交
-
-
由 Santiago Pastorino 提交于
This reverts commit 174cf8b2, reversing changes made to 7ecd6a73. The reverted commit improved the performance in the wrong place, now we have added this 6ddbd184 improvement.
-