Desert and Tog

2 views
Skip to first unread message

hasan

unread,
Oct 16, 2008, 6:14:56 PM10/16/08
to tog_users
I went through the whole installation with a problem but when I tried
to start rails, I got the following error. Any of you saw this issue?
If yes, please help.

/usr/lib/ruby/gems/1.8/gems/desert-0.3.2/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 /usr/lib/ruby/
gems/1.8/gems/desert-0.3.2/lib/desert/rails/dependencies.rb:13:in
`load_missing_constant'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:453:in `const_missing'
from /home/hasan/apps/unemployment/vendor/plugins/tog_core/app/
models/tog/plugins.rb:16:in `observers'
from /home/hasan/apps/unemployment/vendor/plugins/tog_mail/
init.rb:8:in `evaluate_init_rb'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/
plugin.rb:79:in `evaluate_init_rb'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/
plugin.rb:75:in `evaluate_init_rb'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/
plugin.rb:39:in `load_without_desert'
... 15 levels...
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/
generate.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from script/generate:3

Aitor Garcia Rey

unread,
Oct 16, 2008, 7:12:46 PM10/16/08
to tog_...@googlegroups.com
On Fri, Oct 17, 2008 at 12:14 AM, hasan <hasan...@gmail.com> wrote:

I went through the whole installation with a problem but when I tried
to start rails, I got the following error. Any of you saw this issue?
If yes, please help.

 /usr/lib/ruby/gems/1.8/gems/desert-0.3.2/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 /usr/lib/ruby/
gems/1.8/gems/desert-0.3.2/lib/desert/rails/dependencies.rb:13:in

Seems to be a problem originated by a wrong gem installation. As stated on the wiki you need tog-desert gem, not original gem 'desert'. You can check it by doing  "gem list tog" on your machine. The tog-desert gem adds the observer class that the errors shows. What is really weird is that the tog-desert gem should be automatically installed because tog-tog depends on it.

--
Kind Regards,
Aitor Garcia
Cofounder - Linking Paths
http://www.linkingpaths.com
Reply all
Reply to author
Forward
0 new messages