[Radiant] deployment on debian with mongrel
Jean-Christophe Michel
lists.jc.michel at symetrie.com
Wed May 21 05:57:44 CDT 2008
Hi,
Using radiant for the first time, I encountered problems on
deployment on debian etch/mongrel.
THe error was always related to unknown Status class.
I solved it by explicitely requiring this class in environment.rb in
my app :
Index: config/environment.rb
===================================================================
--- config/environment.rb (révision 3)
+++ config/environment.rb (copie de travail)
@@ -69,6 +69,9 @@
end
config.after_initialize do
+ # require Status class
+ require 'models/status'
+
# Add new inflection rules using the following format:
Inflector.inflections do |inflect|
inflect.uncountable 'config'
Seems that rails (or radiant) doesn't automatically load a model
class that's not an ActiveRecord inheritance.
More information about the Radiant
mailing list