Question

I am using rvm - passenger - apache combination. For different apps i have the PassengerRuby specified in the host file.

Like this:

App1.conf

PassengerRuby /usr/local/rvm/gems/ruby-1.9.3-p545/wrappers/ruby

App2.conf

PassengerRuby /usr/local/rvm/gems/ruby-2.1.1/wrappers/ruby

I want to find from the application with which Ruby it's Running. So that i can display to the user.

How can i do that from the application itself?

Was it helpful?

Solution

RUBY_VERSION indicates the version of the Ruby interpreter. There is also RUBY_PATCHLEVEL if you need more information.

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