When generating scaffold in Rails, you probably notice that the scaffold invoke your /config/routes.rb file with a resources. For example, if you generate Photo’s scaffold, you will get resources :photos. So what is that resources things mean?

A …

Read more at the source