Class: Teleport::WelcomeGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Teleport::WelcomeGenerator
- Defined in:
- lib/generators/teleport/welcome.rb
Instance Method Summary collapse
Instance Method Details
#add ⇒ Object
5 6 7 8 9 10 |
# File 'lib/generators/teleport/welcome.rb', line 5 def add template 'welcome/welcome_controller.rb', 'app/controllers/welcome_controller.rb' template 'welcome/index.haml', 'app/views/welcome/index.haml' remove_comments 'config/routes.rb' route "root 'welcome#index'" end |