Class: Museum::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Museum::Generators::ViewsGenerator
- Includes:
- Utils
- Defined in:
- lib/generators/museum/views/views_generator.rb
Instance Method Summary collapse
-
#add_views ⇒ Object
all public methods in here will be run in order.
Methods included from Utils
Instance Method Details
#add_views ⇒ Object
all public methods in here will be run in order
10 11 12 13 14 15 |
# File 'lib/generators/museum/views/views_generator.rb', line 10 def add_views output "I'm copying the default views into app/views/museum for you.", :magenta template "index.html.haml", "app/views/museum/cases/index.html.haml" template "show.html.haml", "app/views/museum/cases/show.html.haml" template "_widget.html.haml", "app/views/museum/cases/_widget.html.haml" end |