title: Cannot run RoR site on Cloud9 due to ruby version error
body: <p><em>Error Logs found at the bottom of this post</em></p>
  
  <p>I have followed <a href="https://www.youtube.com/user/codemalaysia/videos" rel="nofollow">this</a> tutorial series on how to make a Ruby on Rails application on Cloud9 but ran into a snag. </p>
  
  <p>I arrived at the part where I can deploy code to the Heroku server through Cloud9. In order to do this the person of the tutorial suggested changing the Ruby version to 2.1.4 from the default 2.1.5</p>
  
  <p>Deployment went fine and the site runs fine on Heroku but now I have lost the ability to run it on Cloud9. Please note that my bash_profile file has the following commands:</p>
  
  <pre><code>rvm use 2.1.4
  source ~/.profile
  </code></pre>
  
  <p>Any ideas why I am running into this issue?</p>
  
  <p>Log: </p>
  
  <pre><code>Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.1.4/bin' is not at first place,                                             
           usually this is caused by shell initialization files - check them for 'PATH=...' entries,                                            
           it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',                                                 
           to fix temporarily in this shell session run: 'rvm use ruby-2.1.4'.                                                                  
  Using /usr/local/rvm/gems/ruby-2.1.4                                                                                                          
  Your code is running at https://foosite-foouser.c9.io.                                                                                 
  
  Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.1.4/bin' is not at first place,                                             
           usually this is caused by shell initialization files - check them for 'PATH=...' entries,                                            
           it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',                                                 
           to fix temporarily in this shell session run: 'rvm use ruby-2.1.4'.                                                                  
  Using /usr/local/rvm/gems/ruby-2.1.4                                                                                                          
  Your Ruby version is 2.1.5, but your Gemfile specified 2.1.4 
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>rvm list output:</p>
  
  <pre><code>foouser@foosite:~/workspace (master) $ rvm list
  
  rvm rubies
  
     ruby-1.8.7-p374 [ x86_64 ]
     ruby-1.9.3-p547 [ x86_64 ]
  =* ruby-2.1.4 [ x86_64 ]
     ruby-2.1.5 [ x86_64 ]
  
  # =&gt; - current
  # =* - current &amp;&amp; default
  </code></pre>
  
  <p><strong>Update 2</strong></p>
  
  <p>Output from running <code>rails s -b $IP -p $PORT</code></p>
  
  <blockquote>
  <pre><code>=&gt; Booting WEBrick
  =&gt; Rails 4.1.6 application starting in development on http://0.0.0.0:8080
  =&gt; Run `rails server -h` for more startup options
  =&gt; Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
  =&gt; Ctrl-C to shutdown server
  [2015-04-17 21:29:28] INFO  WEBrick 1.3.1
  [2015-04-17 21:29:28] INFO  ruby 2.1.4 (2014-10-27) [x86_64-linux]
  [2015-04-17 21:29:28] INFO  WEBrick::HTTPServer#start: pid=2626 port=8080
  </code></pre>
  </blockquote>