I have a app that uses Prawn to do some PDF generating, it works fine and I’ve had no problems with it. It’s now come to the point where I want to test it through Apache using Passenger. This is where the problem appears. I get the passenger error page with this error:
no such file to load -- prawn (MissingSourceFile)
I restarted script/server and it didn’t error at all so I’m at a loss as to why this isn’t working.
The problem is that although the prawnto plugin loads up the prawn gem no problem it can’t when running through passenger. So you have to add the config.gem line to environment.rb