Class: RubygemsHerald::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RubygemsHerald::ViewsGenerator
- Includes:
- Rails::Generators::Migration, Generators::Utils
- Defined in:
- lib/generators/rubygems_herald/views/views_generator.rb
Instance Method Summary collapse
-
#add_views ⇒ Object
all public methods in here will be run in order.
Methods included from Generators::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/rubygems_herald/views/views_generator.rb', line 10 def add_views output "I'm copying the default views into app/views/gem_displays for you.", :magenta template "index.html.haml", "app/views/gem_displays/index.html.haml" template "show.html.haml", "app/views/gem_displays/show.html.haml" template "_widget.html.haml", "app/views/gem_displays/_widget.html.haml" end |