PATH Environment Variable for Rails using Passenger on OS X
Rails couldn't find my ImageMagick binaries. I saw a post that suggests creating a script that wraps ruby and bootstraps the path. I figured there had to be way to do it in apache; using SetEnv in my apache config worked for me.
Put something like this in the VirtualHost (or wherever passenger is set up):