摘自: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)
本文档介绍了Rails中ActionController和ActionView的基本布局特性。主要内容包括使用Rails内置的各种渲染方法、创建包含多个内容区域的布局、利用片段来简化视图以及使用嵌套布局(子模板)。
883

被折叠的 条评论
为什么被折叠?



