Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Arguments for url helper #83

Open
botanicus opened this issue Sep 28, 2009 · 3 comments
Open

Arguments for url helper #83

botanicus opened this issue Sep 28, 2009 · 3 comments
Labels

Comments

@botanicus
Copy link
Owner

url(:post, @post, format: "foo")
    - @post ... /post/:slug => @post.slug
    - @post ... /post/:id => @post.id
@botanicus
Copy link
Owner Author

The interface has to be the same for all the routers

@botanicus
Copy link
Owner Author

It should be able to works with namespaces:

url("admin:post", @post)

or work with current class or something

@reactormonk
Copy link
Contributor

Bonus if it works as
url(@post)
if it's a resource
see usher issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants