Class: Zoo::Generators::LayoutGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/zoo/layout/layout_generator.rb

Instance Method Summary collapse

Methods inherited from Base

banner, source_root

Instance Method Details

#create_layoutObject

def add_gems

add_gem "haml-rails"

end



12
13
14
15
16
17
# File 'lib/generators/zoo/layout/layout_generator.rb', line 12

def create_layout
  template 'layout.html.haml', "app/views/layouts/#{file_name}.html.haml"
  copy_file 'stylesheet.sass', "public/stylesheets/sass/#{file_name}.sass"
  copy_file 'layout_helper.rb', 'app/helpers/layout_helper.rb'
  copy_file 'error_messages_helper.rb', 'app/helpers/error_messages_helper.rb'
end