Class: DuodealerApp::Generators::HomeControllerGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- DuodealerApp::Generators::HomeControllerGenerator
- Defined in:
- lib/generators/duodealer_app/home_controller/home_controller_generator.rb
Instance Method Summary collapse
- #add_home_index_route ⇒ Object
- #create_home_controller ⇒ Object
- #create_home_index_view ⇒ Object
- #embedded_app? ⇒ Boolean
Instance Method Details
#add_home_index_route ⇒ Object
16 17 18 |
# File 'lib/generators/duodealer_app/home_controller/home_controller_generator.rb', line 16 def add_home_index_route route "root :to => 'home#index'" end |
#create_home_controller ⇒ Object
8 9 10 |
# File 'lib/generators/duodealer_app/home_controller/home_controller_generator.rb', line 8 def create_home_controller template "home_controller.rb", "app/controllers/home_controller.rb" end |
#create_home_index_view ⇒ Object
12 13 14 |
# File 'lib/generators/duodealer_app/home_controller/home_controller_generator.rb', line 12 def create_home_index_view copy_file "index.html.erb", "app/views/home/index.html.erb" end |
#embedded_app? ⇒ Boolean
20 21 22 |
# File 'lib/generators/duodealer_app/home_controller/home_controller_generator.rb', line 20 def DuodealerApp.configuration. end |