I'm seeing a strange problem where I have a JRuby on Rails module that I cannot run using a Rails Run Configuration because it tells me that my Rails gem is not activated. I'm not really sure what this means because all indications are that the Rails gem is correctly installed and working fine. If I navigate in my Rails app down to script/server and launch that script as a Ruby Run Configuration it works just fine. So obviously the Rails gem is present.
Here are some screen shots showing the issue. First, the Rails Run Configuration showing an error:
Then this is the error that pops up when I try to actually launch this Rails Run Configuration:
This shot shows my Module Settings listing the installed gems:
And then also a few of the gems in the Platform Setting's Global Libraries:
The strange thing is that I actually had it working at one point, but only for one run. After that one successful run I started getting this error and I can't make it go away, even after dropping the Module and recreating it again.
I'm using IntelliJ 10.5 with Ruby Plugin 3.1 and JRuby 1.5.1.