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._______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to