[Radiant] Wierd issue with production vs. development
Christopher Dwan
radixhound at gmail.com
Thu Feb 21 17:27:17 CST 2008
Hey all,
I'm building a rake task to pull all my data from my production db
(MySql) to my development db (SQLite). It works great pulling in that
direction, but when I go to reverse the process, it fails. It has to
do with my plugin that uses attachment_fu.
Basically, I have a model Asset that uses 'has_attachment'. This is
the code that doesn't work:
"asset".classify.constantize
This is the error:
NoMethodError: undefined method `has_attachment' for Asset:Class
Any ideas what the difference is between production and development
that would cause this to not work? I can run the server in dev mode,
I just can't run constantize. This error does _not_ happen in the
production environment. I've tried changing the contents of config/
environments/development.rb with no success.
Thanks!
-Chris
More information about the Radiant
mailing list