REST with slash instead of semicolon without using edge

Is there a simple way to “monkey-patch” a Rails app to have RESTful
URLs use “/” instead of “;” without having to use Edge Rails?

Thanks!

On Fri, May 11, 2007 at 10:36:01AM -0700, [email protected] wrote :

Is there a simple way to “monkey-patch” a Rails app to have RESTful
URLs use “/” instead of “;” without having to use Edge Rails?

rake rails:freeze TAG=rel_1-2-3

cp vendor/rails/actionpack/lib/action_controller/resources.rb
vendor/rails/actionpack/lib/action_controller/resources.rb.old

svn diff -r6419:HEAD
vendor/rails/actionpack/lib/action_controller/resources.rb >
my_home_made.patch

cd vendor/rails/actionpack/lib/action_controller/ && patch -p0
my_home_made.patch

Run rails tests to ensure the patch only modifies this part of the
routes.

My $0.02,


,========================.
| Pierre-Alexandre M. |
| email : [email protected] |
`========================’

Just declare a map.connect path for it in routes.rb before the
map.resource line. You don’t get the url-helper-goodness tho…

b