Chapter 3 REST, Resources, and Rails

Before REST came, I (and pretty much everyone else) never really knew where to put stuff.

—Jonas Nicklas on the Ruby on Rails mailing list

What I’ve come to embrace is that being almost fundamentalistic about when I create a new controller to stay adherent to REST has served me better every single time. Every single time I’ve regretted the state of my controllers, it’s been because I’ve had too few of them. I’ve been trying to overload things too heavily.

—DHH interview on Full Stack Radio http://www.fullstackradio.com/32

Representational State Transfer (REST) is a complex topic in information theory, and a comprehensive exploration of it is well beyond the scope of this chapter.1 However, we’ll touch ...

Get The Rails 5 Way, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.