Class: ArigatoRails::ThanksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/arigato_rails/thanks_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
12
# File 'app/controllers/arigato_rails/thanks_controller.rb', line 6

def index
  view = Arigato::View.new(Rails.configuration.arigato_rails.theme, File.join(Rails.root, 'Gemfile'), false) 
  @title = view.title
  @specs = view.specs
  # DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. 
  render file: view.content_file.gsub(%r!.html.erb!, '')
end