module Dash class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def install route "mount RailsDash::Engine => '/dash'" route "namespace :dash do\n\n end" template 'dash.erb', 'app/controllers/dash_controller.rb' template 'layout.erb', 'app/views/layouts/dash.html.haml' end end end