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