Question

I installed rails in windows, is there a command to know what is the version of app server installed in in my rails? What is command?

Was it helpful?

Solution

The version of rails is specified in the gemfile

When you say rails new my_app , it generates an entire project(app, log, config, db etc). A gemfile would also be generate . If you open the gemfile you will be able to find the version of your rails.

You will find something like gem rails , '3.2.1'

OTHER TIPS

When you run the server you can see the server name and version.
Eg. run rails s

=> Booting WEBrick

=> Rails 3.0.5 application starting in development on http:

=> Call with -d to detach

=> Ctrl-C to shutdown server

[2012-09-24 12:23:38] INFO WEBrick 1.3.1

[2012-09-24 12:23:38] INFO ruby 1.9.2 (2011-02-18) [i386-mingw32]

[2012-09-24 12:23:38] INFO WEBrick::HTTPServer#start: pid=10116 port=3000

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top