What should one keep in mind when switching from traditional to RESTful routing in Rails?

Posted by Brian Holder-Chow on Programmers See other posts from Programmers or by Brian Holder-Chow
Published on 2012-06-18T23:01:35Z Indexed on 2012/11/21 17:16 UTC
Read the original article Hit count: 347

Filed under:
|
|

What should one keep in mind when switching from traditional to RESTful routing in Rails?

From a typical Rails routes.rb file:

# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
match ':controller(/:action(/:id))(.:format)'

As switching away from this means that I will have to create routes for each controller individually, does anyone have any advice on the best way to migrate this safely?

© Programmers or respective owner

Related posts about ruby-on-rails

Related posts about rest