# REST with slash instead of semicolon without using edge

**URL:** <https://www.ruby-forum.com/t/rest-with-slash-instead-of-semicolon-without-using-edge/103935>\
**Category:** Rails\
**Created:** [May 11, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/rest-with-slash-instead-of-semicolon-without-using-edge/103935 "2007-05-11T19:37:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 11, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/rest-with-slash-instead-of-semicolon-without-using-edge/103935/1 "2007-05-11T19:37:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 11, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/rest-with-slash-instead-of-semicolon-without-using-edge/103935/2 "2007-05-11T19:52:09Z")

</div>

On Fri, May 11, 2007 at 10:36:01AM -0700, removed\_email\_address@domain.invalid 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 : removed\_email\_address@domain.invalid |  
`========================’

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 12, 2007, 10:55am UTC](https://www.ruby-forum.com/t/rest-with-slash-instead-of-semicolon-without-using-edge/103935/3 "2007-05-12T10:55:13Z")

</div>

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
