Tuesday, December 14, 2010

RubyMine 3.0 and RVM

Continuing on my journey of trying to learn Ruby/Rails 11 days before X-mas, I decided to test drive RubyMine from JetBrains and initially it had an issue with detecting rubies (ruby interpreters) I had installed via RVM.  I quick posting to the JetBrains's forum resolved the issue, but it did make me think just what are the benefits of using RVM as opposed to just installing Ruby and Rails system wide...

The neat thing about using RVM is that not only can it manage installations of multiple versions of Ruby (termed rubies by RVM), but you can isolate gems in Gemsets which allows you to easily test different versons of a gem for a rails project.  Without RVM, this would be a little problematic since gems are installed in a single gem directory.  So for example, if you're maintaining a Ruby app built on Rails 3.0.2 and you want to test it against 3.0.3 it's extremely easy to do with RVM.  RubyMine works well with RVM, since it detects all rubies and gemsets configured with RVM on startup.  Just select the appropriately named Gemset in RubyMine preferences window and start running your app

No comments:

Post a Comment