Class: Theme::Generators::LandingPageGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Theme::Generators::LandingPageGenerator
- Defined in:
- lib/generators/theme/landing_page/landing_page_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_page ⇒ Object
10 11 12 13 14 |
# File 'lib/generators/theme/landing_page/landing_page_generator.rb', line 10 def create_page copy_file 'application.html.erb', 'app/views/layouts/application.html.erb' copy_file 'index.html', 'app/views/visitors/index.html.erb' copy_file 'landing-page.css', 'app/assets/stylesheets/landing-page.css' end |