lib/generators/dash/install_generator.rb in rails_dash-0.0.6 vs lib/generators/dash/install_generator.rb in rails_dash-0.1.0
- old
+ new
@@ -2,13 +2,11 @@
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'
+ template 'dash_controller.rb', 'app/controllers/dash_controller.rb'
+ copy_file 'dash.html.erb', 'app/views/layouts/dash.html.erb'
end
end
end