September 2016
Intermediate to advanced
488 pages
12h 21m
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 that rendering takes place at the end of the action, and typically it 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 ...
Read now
Unlock full access