Rails version not shown post installation
Posted
by
mgj
on Ask Ubuntu
See other posts from Ask Ubuntu
or by mgj
Published on 2011-01-08T17:13:14Z
Indexed on
2011/01/08
17:59 UTC
Read the original article
Hit count: 300
Hi all,
I had installed rubygems 1.8 and further on I had installed the rails 2.0.2 gem.
When I tried to view the rails version installed through the command rails -v
It didn't work.. I am unable to figure out why I am getting an "invalid option" on executing the command rails -v
( Please refer the below for the same).
mohnish@mohnish-laptop:~/Downloads$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
mohnish@mohnish-laptop:~/Downloads$ gem list
*** LOCAL GEMS ***
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
rails (2.0.2)
rake (0.8.7)
mohnish@mohnish-laptop:~/Downloads$ rails -v
getopt: invalid option -- 'v'
Terminating...
mohnish@mohnish-laptop:~/Downloads$
Could you please help me out on this regard..
Please note I am currently not making use of the ruby version manager(rvm). Please let me know if I could get a solution once I install the rvm.
Thanks for your help..
© Ask Ubuntu or respective owner