Learn about HTTP Headers: (http://net.tutsplus.com/tutorials/other/http-headers-for-dummies/)
Have another look at routing. (http://guides.rubyonrails.org/v2.3.11/routing.html). I’m hoping to get a grip on nested routes.
Here’s an interesting point. The sequence of the routes in routes.rb is important. “The request will be dispatched to the first matching route. If there is no matching route, then Rails returns HTTP status 404”