Browse files

adding README docs about rendering global partials.

  • Loading branch information...
1 parent cedeb6d commit 8294bb25238e967fe750c6e074aeb4161ed73b98 @apotonick committed Sep 13, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.rdoc
8 README.rdoc
@@ -94,6 +94,14 @@ The distinction between partials and views is making things more complex, so why
= render :view => 'items'
+=== Rendering Global Partials
+Sometimes you need to render a global partial from <tt>app/views</tt> within a cell. For instance, the +gmaps4rails+ helper depends on a global partial. While this breaks encapsulation it's still possible in cells - just add the global view path.
+ class MapCell < Cell::Rails
+ append_view_path "app/views"
== View Inheritance
This is where OOP comes back to your view.

0 comments on commit 8294bb2

Please sign in to comment.