class Mozaic::LayoutGenerator

Public Instance Methods

create_files() click to toggle source
# File lib/generators/mozaic/layout_generator.rb, line 15
def create_files
    names = options[:name].split('/')
    name = names.pop
    template 'layout.html.erb', "app/views/layouts/#{names.join('/')}/#{name}.html.erb"
end