Skip to content
This repository
Browse code

Basic Layouts overview w/ link to guide

  • Loading branch information...
commit 567ea4ba29074079a05ba327c2d78e4a68eb3882 1 parent c918298
Jonathan Roes authored April 04, 2013

Showing 1 changed file with 2 additions and 7 deletions. Show diff stats Hide diff stats

  1. 9  guides/source/action_view_overview.md
9  guides/source/action_view_overview.md
Source Rendered
@@ -172,7 +172,7 @@ That code will pull in the partial from `app/views/shared/_menu.html.erb`.
172 172
 
173 173
 #### Using Partials to simplify Views
174 174
 
175  
-One way to use partials is to treat them as the equivalent of subroutines: as a way to move details out of a view so that you can grasp what's going on more easily. For example, you might have a view that looked like this:
  175
+One way to use partials is to treat them as the equivalent of subroutines; a way to move details out of a view so that you can grasp what's going on more easily. For example, you might have a view that looks like this:
176 176
 
177 177
 ```html+erb
178 178
 <%= render "shared/ad_banner" %>
@@ -269,12 +269,7 @@ Rails will render the `_product_ruler` partial (with no data passed to it) betwe
269 269
 
270 270
 ### Layouts
271 271
 
272  
-TODO...
273  
-
274  
-Using Templates, Partials and Layouts "The Rails Way"
275  
---------------------------------------------------------
276  
-
277  
-TODO...
  272
+Layouts can be used to render a common view template around the results of Rails controller actions. Typically, every Rails has a couple of overall layouts that most pages are rendered within. For example, a site might have a layout for a logged in user, and a layout for the marketing or sales side of the site. The logged in user layout might include top-level navigation that should be present across many controller actions. The sales layout for a SaaS app might include top-level navigation for things like "Pricing" and "Contact Us." You would expect each layout to have a different look and feel. You can read more details about Layouts in the [Layouts and Rendering in Rails](layouts_and_rendering.html) guide.
278 273
 
279 274
 Partial Layouts
280 275
 ---------------

0 notes on commit 567ea4b

Please sign in to comment.
Something went wrong with that request. Please try again.