How to disable REST in Rails Applications

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.

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.


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

Thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs