i This route on rails 2.3.14, which I want to convert to rails 4.0.3
I try to use a match, but give me an error.
ok do it
match ':controller/:action/:id', via: [:get, :post]
If all of this is possible, consider refactoring the route file, not this. In most cases, you will know all the actions that a user can do on your site, and you should limit this.
catch, get, . http://darwinweb.net/articles/the-problem-with-rails-catch-all-route
, . @ParitoshPiplewar answer