6
7
8
9
10
11
|
# File 'lib/innate/view/erb.rb', line 6
def self.call(action, string)
erb = View.compile(string){|str| ::ERB.new(str, nil, '%<>') }
erb.filename = (action.view || action.method).to_s
html = erb.result(action.binding)
return html, 'text/html'
end
|