title: How to change ruby current version by using Capistrano?
body: <p>We are using ruby version 1.8.7 in our staging server but we need to have ruby 2.4.0 to install rails 5.0. We have installed both versions of ruby, i.e., ruby 1.8.7 and 2.4.0 by RVM through Capistrano.</p>
  
  <p>We have tried to change the ruby version from 1.8.7 to 2.4.0 to install rails 5.0.
  But the problem is the ruby version does not change to 2.4.0.</p>
  
  <p>Capistrano version: 2.15.4.</p>
  
  <p>What do we need to do to change the ruby version to 2.4.0 and install Rails 5.0 in staging by Capistrano?</p>