rails generate controller sales, responds_to json; protect; resources :sales (routes);