Stas Senotrusov
2006-Jul-08 05:01 UTC
[Rails] Different URL generation in regular and named routes.
Obviously I am missed something, but why the way a path is generating using named routes is a little bit different from using regular url_for? 1. Parameters from current request did not affect named routes, the way it is in the url_for. 2. only_path=>false by default in named routes. It is true by default whe using *_path instead of *_url, by why not to set it true by default in *_url and get rid of two practically identical methods? -- Posted via http://www.ruby-forum.com/.
Apparently Analagous Threads
- Named routes and current_page? incompatibility
- How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0)
- Setting :canvas => false for URL generation doesn''t always work?
- absolute urls in url_for vs. link_to
- url_for + :canvas => false weirdness for non resource controllers