摘自:http://guides.rubyonrails.org/layouts_and_rendering.html
1 Overview: How the Pieces Fit Together
This guide covers the basic layout features of Action Controller and Action View. By referring to this guide, you will be able to:
- Use the various rendering methods built in to Rails
- Create layouts with multiple content sections
- Use partials to DRY up your views
- Use nested layouts (sub-templates)
1 Overview: How the Pieces Fit Together
This guide covers the basic layout features of Action Controller and Action View. By referring to this guide, you will be able to:
- Use the various rendering methods built in to Rails
- Create layouts with multiple content sections
- Use partials to DRY up your views
- Use nested layouts (sub-templates)