This project is archived and is in readonly mode.
Named routes with nil params have extra slashes
-
josh
- State changed from new to invalid
There should not be a trailing slash by default. I think there is some sort of routing option to configure this though, you may want to check that.
I created a fresh Rails app and it seems to be correct.
posts_path: /posts posts_url: http://localhost:3000/posts url_for(:controller => "posts"): /posts -
Walter Smith
I did my test with a fresh app too. You don't show the route you used -- it matters whether you have the nil default value in the route. (:id => nil)