# How to disable REST in Rails Applications

**URL:** <https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813>\
**Category:** Rails\
**Created:** [March 14, 2009, 1:40am UTC](https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813 "2009-03-14T01:40:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [March 14, 2009, 1:40am UTC](https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813/1 "2009-03-14T01:40:20Z")

</div>

Yes, I know that REST is the new way to program in Rails, but I really  
likes the old-fashion way, How can I disable REST so I can expose very  
easily methods in my controller?

Thank you.

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [March 14, 2009, 1:43am UTC](https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813/2 "2009-03-14T01:43:15Z")

</div>

You don’t have to disable anything. Don’t use map.resources.

The original

map.connect :controller/:action/:id

route should be all you need if you wanna go oldschool.

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [March 14, 2009, 1:47am UTC](https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813/3 "2009-03-14T01:47:56Z")

</div>

Brian,

So in a new rails\_apps just include the map.connect line and comment  
the default ones?

Thank you
