Class: Museum::Generators::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Utils
Defined in:
lib/generators/museum/views/views_generator.rb

Instance Method Summary collapse

Methods included from Utils

#ask_for, #output

Instance Method Details

#add_viewsObject

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