Class: Tetrahedron::Application::Controller

Inherits:
Base
  • Object
show all
Defined in:
lib/tetrahedron/application/controller.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Method Details

#erb(template, options = {}, locals = {}) ⇒ Object

Don’t recognize *.erb templates.



10
11
12
13
# File 'lib/tetrahedron/application/controller.rb', line 10

def erb(template, options={}, locals={})
  options[:layout] = settings.erb[:layout] if options[:layout].nil?
  render 'html.erb', template, options, locals
end