Rails Plugin Error - 05/06/2008
It seems if you are missing a gem when rails trys to load, you will get a ambiguous error that is not very useful. It would be nice if rails told you what gem it couldn't find. Below are a few ways to help troubleshoot such an issue.
First, run ruby script/server webrick, webrick with give you a much better error than mongrel. It seems for me the attachment_fu module kept failing because of missing processor gems. I was receiving define Technoweenie::AttachmentFu (LoadError) which was not much help either. Even once I had the processors installed I received the same error.
Next try moving attachment_fu out of the way, this revealed that I didn't have the sqlite3 gem installed. Once this was installed the server started. I moved the attachment_fu plugin back and restarted.
Everything worked once these gems were installed. It would be nice to figure out a way to test for missing gems and automatically list them out. Any ideas?
Post a Comment