Permalink
Browse files

Explicit template/layout render example

- Closes #270.
  • Loading branch information...
1 parent 1e2b17e commit 30d998c4888c0f5e236a9acdee014e3c96356844 @rgarner rgarner committed with dchelimsky Nov 25, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
@@ -195,6 +195,11 @@ This means that most of the time you don't need to set these values. When
spec'ing a partial that is included across different controllers, you _may_
need to override these values before rendering the view.
+To provide a layout for the render, you'll need to specify _both_ the template
+and the layout explicitly. For example:
+
+ render :template => "events/show", :layout => "layouts/application"
+
## `assign(key, val)`
Use this to assign values to instance variables in the view:

0 comments on commit 30d998c

Please sign in to comment.