This looks like it probably would solve your problem. I've never seen
a Rails host require users to do that, though I'd imagine that some of
the one-size-fits-all hosts out there might suggest it. In general,
anything that loads gems should typically go into your environment.rb
file. The "correct" way of doing that is by adding any additional
paths to config.load_paths in your environment.rb. For example, to
include any gems in vendor/gems/ you would do something like:
config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir|
File.directory?(lib = "#{dir}/lib") ? lib : dir
end
Assuming that the code your host has provided you works, and assuming
that they build the gem properly (as I said before, the mysql gem has
to be built on the platform that it's going to be used on), then
getting rails to load it via environment.rb make it get loaded.
But judging by the error you've been getting in your logs, the problem
is definitely that your project can't find the mysql gem. And without
it, it can't connect to the database, so your mongrels just die
immediately after starting. (And you get the 500 gateway error that so
many Rails admins are so familiar with. :) )
Hope that helps.