diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-07-16 05:20:29 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-16 05:20:29 +0100 |
commit | 8b933517ea750e400f0c7dea29c06de0915cd726 (patch) | |
tree | de9733af7023bd1a10990a78ed5d0c5e60f0d87c | |
parent | 2a7aca8ec34ebfe0e30dd5e8696918b083ef56f5 (diff) | |
download | rails-8b933517ea750e400f0c7dea29c06de0915cd726.tar.gz rails-8b933517ea750e400f0c7dea29c06de0915cd726.tar.bz2 rails-8b933517ea750e400f0c7dea29c06de0915cd726.zip |
Add config.ru to rails app generator
-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 } |