Hi all,

this might be a dumb question, but how can you produce custom resource
routes?

Lets say you want to add extra parameters in your url but you want your
url to stay pritty?

edit_resource_path(:param1 => :value1, :param2 => :value2) => don't need
an id in edit.
new_resource_path(:param1 => :value1, :param2 => :value2)

This might produce something like
resource/new?param1=value1&params2=value2

But the thing I want is more like resource/value1/value2/new

Is there a way to overwrite the custom resource routes?

thank you in advance
-- 
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