diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/config.ru | 3 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/app_generator.rb | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/railties/config.ru b/railties/config.ru new file mode 100644 index 0000000000..1b9aec18b2 --- /dev/null +++ b/railties/config.ru @@ -0,0 +1,3 @@ +require File.dirname(__FILE__) + '/config/environment' +use Rails::Rack::Static +run ActionController::Dispatcher.new diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 80e8eabfd3..98fe163455 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -46,6 +46,7 @@ class AppGenerator < Rails::Generator::Base # Root m.file "fresh_rakefile", "Rakefile" m.file "README", "README" + m.file "config.ru", "config.ru" # Application m.template "helpers/application.rb", "app/controllers/application.rb", :assigns => { :app_name => @app_name, :app_secret => md5.hexdigest } |