Permalink
Browse files

Use insert_into_file to mount Spree inside the Rails application auto…

…matically.
  • Loading branch information...
parndt committed Nov 17, 2011
1 parent 7779e80 commit ba67b514af41918bf892323c9fd685689c74667a
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/generators/spree/install/install_generator.rb
@@ -145,8 +145,12 @@ def load_sample_data
end
def notify_about_routes
insert_into_file File.join('config', 'routes.rb'), :after => "Application.routes.draw do\n" do
" # Mount Spree's routes\n mount Spree::Core::Engine, :at => '/'\n"
end
puts "*" * 50
puts "Be sure to add the following line to your application's config/routes.rb file to finish setting up Spree:"
puts "We added the following line to your application's config/routes.rb file:"
puts " "
puts " mount Spree::Core::Engine, :at => '/'"
end

0 comments on commit ba67b51

Please sign in to comment.