Reputation: 6568
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?
Upvotes: 0
Views: 65
Reputation: 9225
RUBY_VERSION
indicates the version of the Ruby interpreter. There is also RUBY_PATCHLEVEL
if you need more information.
Upvotes: 2