Class: Zoo::Generators::LayoutGenerator
- Defined in:
- lib/generators/zoo/layout/layout_generator.rb
Instance Method Summary collapse
-
#create_layout ⇒ Object
def add_gems add_gem “haml-rails” end.
Methods inherited from Base
Instance Method Details
#create_layout ⇒ Object
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 |