Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding README docs about rendering global partials.

  • Loading branch information...
commit 8294bb25238e967fe750c6e074aeb4161ed73b98 1 parent cedeb6d
Nick Sutterer authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.rdoc
8 README.rdoc
View
@@ -94,6 +94,14 @@ The distinction between partials and views is making things more complex, so why
%p
= 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.
Please sign in to comment.
Something went wrong with that request. Please try again.