Skip to content
Browse files

need a more complete template name than this

  • Loading branch information...
1 parent b24387a commit 7f8a0eafe185cf934d221703f815f35972b2ec75 @svenfuchs committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/handlebars/rails/template_handlers.rb
View
3 lib/handlebars/rails/template_handlers.rb
@@ -17,7 +17,8 @@ def prepare
end
def evaluate(scope, locals, &block)
- ::Handlebars::Template.render(name, data)
+ # ::Handlebars::Template.render(name, data)
+ ::Handlebars::Template.render(scope.logical_path.gsub('app/templates/', ''), data)
end
end
end

0 comments on commit 7f8a0ea

Please sign in to comment.
Something went wrong with that request. Please try again.