aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-10-02 01:06:39 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-10-02 01:06:39 -0500
commit101fb42106db4e7e8221a3fec252e51dd84e0bb4 (patch)
tree9ee7fdb83a08704289431a5f19e16cacb4fc023d /railties
parent7039def6e116b12ccab8142cec7f7feabc264220 (diff)
downloadrails-101fb42106db4e7e8221a3fec252e51dd84e0bb4.tar.gz
rails-101fb42106db4e7e8221a3fec252e51dd84e0bb4.tar.bz2
rails-101fb42106db4e7e8221a3fec252e51dd84e0bb4.zip
Print information about .railsrc to users
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/commands/application.rb1
-rw-r--r--railties/lib/rails/generators/rails/app/USAGE6
2 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/application.rb b/railties/lib/rails/commands/application.rb
index dcd4c7a529..60d1aed73a 100644
--- a/railties/lib/rails/commands/application.rb
+++ b/railties/lib/rails/commands/application.rb
@@ -13,6 +13,7 @@ else
if File.exist?(railsrc)
extra_args_string = File.open(railsrc).read
extra_args = extra_args_string.split(/\n+/).map {|l| l.split}.flatten
+ puts "Using #{extra_args.join(" ")} from #{railsrc}"
ARGV << extra_args
ARGV.flatten!
end
diff --git a/railties/lib/rails/generators/rails/app/USAGE b/railties/lib/rails/generators/rails/app/USAGE
index 9e7a78d132..691095f33f 100644
--- a/railties/lib/rails/generators/rails/app/USAGE
+++ b/railties/lib/rails/generators/rails/app/USAGE
@@ -2,6 +2,12 @@ Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.
+ You can specify extra command-line arguments to be used every time
+ 'rails new' runs in the .railsrc configuration file in your home directory.
+
+ Note that the arguments specified in the .railsrc file don't affect the
+ defaults values shown above in this help message.
+
Example:
rails new ~/Code/Ruby/weblog