If I have a resource called 'assets' then I get for free a bunch of
helpers, like

assets_path
new_asset_path

and so forth, right?

I would like to be able to create a call to one of these on the fly when
I only find out the name of the resource at run time. For example I
would like to do this:

resource_name = "assets"
resource_path(resource_name, method => :new)

Anyone know the Rails/Rest/Routing incantation for that? Thanks!

Pito

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to