[Rails] Don't Try This at Home (rails --help)

Jamis Buck jamis_buck at byu.edu
Wed Mar 2 18:32:53 GMT 2005


On Mar 2, 2005, at 11:22 AM, Scott Barron wrote:

> Josh Knowles wrote:
>> So I was attempting to determine what version of Rails I was running;
>> I first I did rails -v which went off and created a -v directory.  I
>> then did a rails --help which created a --help directory... I dont
>> know if you have ever tried, but deleting a directory named --help
>> from the cli is about impossible!  I had to write a ruby script to
>> clean up the mess I made!
>> _______________________________________________
>> Rails mailing list
>> Rails at lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>
> rm -rf -- --help
>
> rails --help should show you a rails help screen, though.  What 
> version are you using?

Okay, now that's funny. Thanks for the laugh, Scott. :) (I assume that 
was intentional?)

To the OP, you can determine your rails version by doing "gem list 
rails". If you are using the latest version of Rails, you can do 
--help, but you still can't use the rails tool to determine the rails 
version.

- Jamis



More information about the Rails mailing list