March 2025
Intermediate to advanced
472 pages
12h 10m
English
We cover:
We’ve seen how the routing component determines which controller to use and how the controller chooses an action. We’ve 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’ll start with templates, for which Rails provides a range of options. We will then ...
Read now
Unlock full access