I want to run rails server in one Terminal window and work in another Terminal window, but the second window doesn’t work, even though I would expect the two windows to function identically.
When I type rails (much less rails s, etc.) in that second window, I get this error:
Could not find jquery-rails-2.0.2 in any of the sources
Run 'bundle install' to install missing gems.
My understanding is that bundle install shouldn’t be necessary (as it had already been taken care of in the first window and everything is functioning properly), and I’ve made sure everything is as it should be with which ruby and rvm use <my gemset>, etc. The second Terminal window assures me that I am using the appropriate Ruby version and gemset, yet does not work.
Meanwhile, the original Terminal window continues to work exactly as it should — I just keep having to exit out of Rails server in order to keep working, which is annoying.
Is there something painfully obvious here that I don’t understand about working in a second Terminal window? I wouldn’t have expected much setup to be required.
Despite my efforts to make sure they did, the gemsets between the two Terminal windows did not match. This was discovered using
gem listand comparing the two outputs.