Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As we develop the web functionality for the Spitter application, we’re going to develop resource-oriented controllers. Rather than write one controller for each use case in our application, we’re going to write a single controller for each kind of resource that our application serves.
The Spitter application, being rather simple, has only two primary resource types: Spitters who are the users of the application and the spittles that they use to communicate their thoughts. Therefore, you’ll need to write a spitter-oriented controller and a spittle-oriented controller. Figure 7.2 shows where these controllers fit into the overall application.