November 2017
Intermediate to advanced
496 pages
12h 50m
English
We cover:
We’ve seen how the routing component determines which controller to use and how the controller chooses an action. We’ve also seen how the controller and action between them decide what to render to the user. Normally rendering takes place at the end of the action, and involves a template. That’s what this chapter is all about. Action View encapsulates all the functionality needed to render templates, most commonly generating HTML, XML, or JavaScript back to the user. As its name suggests, Action View is the view part of our MVC trilogy.
In this chapter, we will start with templates, for which Rails provides a range of options. We ...
Read now
Unlock full access