Working As Intended

Choosing a different Rails database.yml file for JRuby

May 3rd 2010

I'm working on a Rails project where I need to run under both normal C-based ruby and JRuby. I was annoyed that when running under JRuby, I had to set the adapter to 'jdbcmysql' instead of 'mysql'. I had to switch back and forth a lot, and I really didn't want to set up separate environments just for the choice of Ruby interpreter.

blog comments powered by Disqus

Feed Feed