Permalink
Browse files

Fix issue with standalone ActionView

  • Loading branch information...
1 parent 2954cf1 commit 16a48a95e3cb0044587df7b0e83b017a94506739 @wycats wycats committed Oct 9, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 actionpack/lib/action_view/render/partials.rb
@@ -296,7 +296,10 @@ def find_template(path = @path)
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

0 comments on commit 16a48a9

Please sign in to comment.