Class: Ruby_Captivate::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ruby_captivate/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_captivate_routesObject



16
17
18
19
# File 'lib/generators/ruby_captivate/install/install_generator.rb', line 16

def add_captivate_routes
  captivate_route  = "match '/internalreport', :to => 'captivate_results#process_results'"
  route captivate_route
end

#add_controllerObject



8
9
10
# File 'lib/generators/ruby_captivate/install/install_generator.rb', line 8

def add_controller
  template "captivate_results_controller.rb", "app/controllers/captivate_results_controller.rb"
end

#add_stub_viewObject



12
13
14
# File 'lib/generators/ruby_captivate/install/install_generator.rb', line 12

def add_stub_view
  template "process_results.html.erb", "app/views/captivate_results/process_results.html.erb"
end