aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-26 12:16:36 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-07-26 12:51:48 -0300
commit514624e53c7b3008e3c492ef01f4d85188cdbbd7 (patch)
treebd1d77eb0bea21d43b8fa3b32947b0f067f55373
parenta44652baed1d26a4f63380c406e05f7a2ddd4a12 (diff)
downloadrails-514624e53c7b3008e3c492ef01f4d85188cdbbd7.tar.gz
rails-514624e53c7b3008e3c492ef01f4d85188cdbbd7.tar.bz2
rails-514624e53c7b3008e3c492ef01f4d85188cdbbd7.zip
Fixes usage message when running rails without --dev on a cloned rails repo
-rw-r--r--railties/lib/rails/generators/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/base.rb b/railties/lib/rails/generators/base.rb
index 67a9a6030d..fdfceb14ce 100644
--- a/railties/lib/rails/generators/base.rb
+++ b/railties/lib/rails/generators/base.rb
@@ -3,7 +3,7 @@ begin
rescue LoadError
puts "Thor is not available.\nIf you ran this command from a git checkout " \
"of Rails, please make sure thor is installed,\nand run this command " \
- "as `ruby /path/to/rails new myapp --dev`"
+ "as `ruby #{$0} #{ARGV.join(" ")} --dev`"
exit
end