class RailsBestPractices::Reviews::NotUseDefaultRouteReview

Review config/routes file to make sure not use default route that rails generated.

See the best practice details here rails-bestpractices.com/posts/2010/07/22/not-use-default-route-if-you-use-restful-design/

Implementation:

Review process:

check all method command_call or command node to see if it is the same as rails default route.

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'

or

  match ':controller(/:action(/:id(.:format)))'