Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Explicit template/layout render example

- Closes #270.
  • Loading branch information...
commit 30d998c4888c0f5e236a9acdee014e3c96356844 1 parent 1e2b17e
@rgarner rgarner authored dchelimsky committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
5 README.md
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.