aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-10-09 00:55:00 -1000
committerYehuda Katz <wycats@gmail.com>2009-10-09 00:55:00 -1000
commit16a48a95e3cb0044587df7b0e83b017a94506739 (patch)
tree1ea42e4e1523ed7e54231c339bd53ad88e23c77b /actionpack/lib
parent2954cf13697cac564ec8a5f30638aa699b1874c1 (diff)
downloadrails-16a48a95e3cb0044587df7b0e83b017a94506739.tar.gz
rails-16a48a95e3cb0044587df7b0e83b017a94506739.tar.bz2
rails-16a48a95e3cb0044587df7b0e83b017a94506739.zip
Fix issue with standalone ActionView
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/render/partials.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb
index 4f60566a09..2eb88ae3e5 100644
--- a/actionpack/lib/action_view/render/partials.rb
+++ b/actionpack/lib/action_view/render/partials.rb
@@ -296,7 +296,10 @@ module ActionView
end
def _find_template(path)
- prefix = @view.controller.controller_path unless path.include?(?/)
+ if controller = @view.controller
+ prefix = controller.controller_path unless path.include?(?/)
+ end
+
@view.find(path, {:formats => @view.formats}, prefix, true)
end