class LayoutGenerator

layout_generator.rb

Created by Marko Tunjic on 15/07/16. Copyright © 2016 Marko Tunjic. All rights reserved.

Public Instance Methods

generate_layout() click to toggle source
# File lib/generators/layout/layout_generator.rb, line 17
def generate_layout
  if options.stylesheet?
    copy_file "application.scss", "public/stylesheets/application.scss"
  end
  template "layout.html.erb", "app/views/layouts/application.html.erb"

end