# REST with slash instead of semicolon without using edge

**URL:** <https://discuss.rubyonrails.org/t/rest-with-slash-instead-of-semicolon-without-using-edge/12836>\
**Category:** rubyonrails-talk\
**Created:** [May 11, 2007, 5:36pm UTC](https://discuss.rubyonrails.org/t/rest-with-slash-instead-of-semicolon-without-using-edge/12836 "2007-05-11T17:36:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toulax](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@toulax](https://discuss.rubyonrails.org/u/toulax)\
**Post date:** [May 11, 2007, 5:36pm UTC](https://discuss.rubyonrails.org/t/rest-with-slash-instead-of-semicolon-without-using-edge/12836/1 "2007-05-11T17:36:01Z")

</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:** ![Pierre-Alexandre\_Mey](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Pierre-Alexandre\_Mey](https://discuss.rubyonrails.org/u/Pierre-Alexandre_Mey)\
**Post date:** [May 11, 2007, 5:51pm UTC](https://discuss.rubyonrails.org/t/rest-with-slash-instead-of-semicolon-without-using-edge/12836/2 "2007-05-11T17:51:19Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![Ben\_Munat](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Ben\_Munat](https://discuss.rubyonrails.org/u/Ben_Munat)\
**Post date:** [May 12, 2007, 8:54am UTC](https://discuss.rubyonrails.org/t/rest-with-slash-instead-of-semicolon-without-using-edge/12836/3 "2007-05-12T08:54:10Z")

</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

toulax@gmail.com wrote:
