lib/generators/cream/app/app_generator.rb in cream-0.9.0 vs lib/generators/cream/app/app_generator.rb in cream-0.9.1

- old
+ new

@@ -45,14 +45,14 @@ end end def app_routes routes = read_routes_file - # if no :welcome controller + # if no 'root' route if !(routes =~ /root\s+:/) - # create one with an 'index' view. - rgen "controller Welcome index" - File.insert_into routes_file, :after => 'do', :content => 'root :to => "welcome#index"' + # create a MainController with an #index action. + rgen "controller Main index" + File.insert_into routes_file, :after => 'do', :content => 'root :to => "main#index"' end end # in 'app/views/layouts/application.html.erb' # insert special flash msg displayers after opening <body> element \ No newline at end of file