aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-10-13 17:52:20 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-10-14 11:18:45 -0700
commit5ffb877d3a5d7fd2266b58495de435dd9c33d4e1 (patch)
treee4144217d51f17955f2fbbbd6c7c50186722955d /railties
parentd56984c01696348913b298bb65483534035304f0 (diff)
downloadrails-5ffb877d3a5d7fd2266b58495de435dd9c33d4e1.tar.gz
rails-5ffb877d3a5d7fd2266b58495de435dd9c33d4e1.tar.bz2
rails-5ffb877d3a5d7fd2266b58495de435dd9c33d4e1.zip
Add Gemfile to the rails application generator
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile10
2 files changed, 11 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index 78b4b057ae..bd7af25bd5 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -54,6 +54,7 @@ module Rails::Generators
copy_file "Rakefile"
copy_file "README"
copy_file "config.ru"
+ template "Gemfile"
end
def create_app_files
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile
new file mode 100644
index 0000000000..bcbaa432b7
--- /dev/null
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -0,0 +1,10 @@
+# Gemfile is where you list all of your application's dependencies
+#
+gem "rails", "<%= Rails::VERSION::STRING %>"
+#
+# Bundling edge rails:
+# gem "rails", "<%= Rails::VERSION::STRING %>", :git => "git://github.com/rails/rails.git"
+
+# You can list more dependencies here
+# gem "nokogiri"
+# gem "merb" # ;) \ No newline at end of file