blob: e1b221076b34c94a49aa92bf4cf8474857661cb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class ApplicationController
def render(action_name)
html = File.open("./app/views/#{controller_namespace.to_s}/#{action_name.to_s}.html.erb").read
template = ERB.new(html)
template.result(binding)
end
def controller_namespace
'/'
end
end
|