rango
rango copied to clipboard
Arguments for url helper
url(:post, @post, format: "foo") - @post ... /post/:slug => @post.slug - @post ... /post/:id => @post.id
The interface has to be the same for all the routers
It should be able to works with namespaces:
url("admin:post", @post)
or work with current class or something
Bonus if it works as url(@post) if it's a resource see usher issue