well, I made a rake task that needs the mysql2 gem. I manually installed the mysql2 gem with 'gem install mysql2'; however, I did not put it in the Gemfile. I'll try that now.
–
sybindAug 17 '12 at 22:27

mpapis: just tried that and put the output in an edit
–
sybindAug 17 '12 at 22:28

Did you bundle after adding it to the gem file? Bundler can't see it according to what you posted.
–
IsotopeAug 17 '12 at 22:40

1 Answer
1

Rails will automatically use Bundler.setup when starting, it is equivalent with bundle exec from command line, to allow loading mysql gem you need it to your Gemfile and run bundle install, best if you place it in proper group - some projects use pg for production and mysql for development, if you plan always using it then it can be specified without group.

thanks for the answer. so does Rails not look for local gems installed when Bundler is in use?
–
sybindAug 18 '12 at 22:07

it's bundler limiting the list of available gems, you would need to load a gem before initializing bundler, but then if a other version of the same gem is available via bundler then it would conflict with the one already loaded
–
mpapisAug 18 '12 at 22:54