Constant Desert::Observer from desert/observer.rb not found

5 views
Skip to first unread message

Brian Smith

unread,
Feb 23, 2009, 10:01:16 PM2/23/09
to tog_users
I saw a message on the group about this problem, but there was no
answer. Whenever I try to star the server or generate a migration I
get the following:

/opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/rails/
dependencies.rb:56:in `look_for_constant_in_parent_module': Constant
Desert::Rails::Observer from desert/rails/observer.rb not found
(NameError)
Constant Desert::Observer from desert/observer.rb not found
Constant Observer from observer.rb not found
from /opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/rails/
dependencies.rb:13:in `load_missing_constant'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:77:in `const_missing'
from /Users/williamsmith/code/sites/tyketown/vendor/plugins/tog_core/
app/models/tog/plugins.rb:36:in `observers'
from /Users/williamsmith/code/sites/tyketown/vendor/plugins/tog_mail/
init.rb:13:in `evaluate_init_rb'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/
plugin.rb:103:in `evaluate_init_rb'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/
plugin.rb:99:in `evaluate_init_rb'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/
plugin.rb:44:in `load_without_desert'
from /opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/rails/
2.0.0/plugin.rb:16:in `load'
from /opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/
manager.rb:45:in `register_plugin'
from /opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/
manager.rb:11:in `__send__'
from /opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/
manager.rb:11:in `method_missing'
from /opt/local/lib/ruby/gems/1.8/gems/desert-0.3.3/lib/desert/rails/
2.0.0/plugin.rb:15:in `load'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/
loader.rb:33:in `load_plugins'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/
loader.rb:32:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/
loader.rb:32:in `load_plugins'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
323:in `load_plugins'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
160:in `process'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
112:in `send'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
112:in `run'
from /Users/williamsmith/code/sites/tyketown/config/environment.rb:15
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
generate.rb:1
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from script/generate:3


I followed the instructions on the wiki. Did I miss something?

Gaizka Villate

unread,
Feb 24, 2009, 2:18:59 AM2/24/09
to tog_...@googlegroups.com
Yo are using the desert gem, according to this error.

I think you have to use tog-desert gem.

That's what i am using:

$ gem list | grep desert
tog-desert (0.3.5.1)

Hope that helps!

-- Gaizka

El día 23/02/09 19:01 -0800, Brian Smith escribió:

Aitor Garcia Rey

unread,
Feb 24, 2009, 4:10:51 AM2/24/09
to tog_...@googlegroups.com
Yep, exactly. The feature of add observers from desert extension is
only on tog-desert gem.

On Tue, Feb 24, 2009 at 8:18 AM, Gaizka Villate <gai...@gmail.com> wrote:
> Yo are using the desert gem, according to this error.
>
> I think you have to use tog-desert gem.
>

--
Kind Regards,
Aitor Garcia
Cofounder - Linking Paths
http://www.linkingpaths.com

Reply all
Reply to author
Forward
0 new messages