What should one keep in mind when switching from traditional to RESTful routing in Rails?
- by Brian Holder-Chow
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?