lib/innate/view/erb.rb in innate-2009.04.12 vs lib/innate/view/erb.rb in innate-2009.05

- old
+ new

@@ -2,13 +2,12 @@ module Innate module View module ERB def self.call(action, string) - erb = ::ERB.new(string.to_s, nil, '%<>') + erb = View.compile(string){|s| ::ERB.new(s, nil, '%<>') } erb.filename = (action.view || action.method).to_s html = erb.result(action.binding) - return html, 'text/html' end end end end