Dimitar Yordanov
2009-Feb-10 00:33 UTC
[Ferret-talk] uninitialized constant ActsAsFerret (NameError)
Hi all, I have another problem that I fight with for some time and I could not understand where is the problem. Probably the problem is that I am quite "green" in RR :) I am trying to make the Demo Application that comes with Ferret to work but I guess something with my environment is not OK. I will do apreciate any help. [root at moonlight FerretDemo]# ./script/server => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails 2.2.2 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in `load_missing_constant'': uninitialized constant ActsAsFerret (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing'' from /var/www/html/staff/FerretDemo/config/environment.rb:56 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'' ... 21 levels... from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from ./script/server:3 -- Posted via http://www.ruby-forum.com/.
Philip Ingram
2009-Feb-10 01:33 UTC
[Ferret-talk] uninitialized constant ActsAsFerret (NameError)
Dimitar, it appears you added Acts_as_ferret to your environment.rb file. you shouldn''t need that if you are using the latest version. The gem/plugin does that kind of magic for you. get rid of it and see if it works. On 9-Feb-09, at 7:33 PM, Dimitar Yordanov wrote:> Hi all, > I have another problem that I fight with for some time and I could not > understand where is the problem. Probably the problem is that I am > quite > "green" in RR :) > I am trying to make the Demo Application that comes with Ferret to > work > but I guess something with my environment is not OK. > I will do apreciate any help. > > [root at moonlight FerretDemo]# ./script/server > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > => Rails 2.2.2 application starting on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > ** Starting Rails with development environment... > Exiting > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:445:in > `load_missing_constant'': uninitialized constant ActsAsFerret > (NameError) > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:77:in > `const_missing'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:89:in > `const_missing'' > from /var/www/html/staff/FerretDemo/config/environment.rb:56 > from > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:153:in > `require'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:521:in > `new_constants_in'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:153:in > `require'' > ... 21 levels... > from > /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 > from > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from ./script/server:3 > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk
Jens Kraemer
2009-Feb-10 08:51 UTC
[Ferret-talk] uninitialized constant ActsAsFerret (NameError)
Hi, On 10.02.2009, at 01:33, Dimitar Yordanov wrote:> Hi all, > I have another problem that I fight with for some time and I could not > understand where is the problem. Probably the problem is that I am > quite > "green" in RR :) > I am trying to make the Demo Application that comes with Ferret to > work > but I guess something with my environment is not OK. > I will do apreciate any help.Did you actually install the plugin to vendor/plugins/acts_as_ferret ? The demo app doesn''t run out of the box. I used to use svn:externals for this but since the move to git this step is necessary. Cheers, Jens -- Jens Kr?mer Finkenlust 14, 06449 Aschersleben, Germany VAT Id DE251962952 http://www.jkraemer.net/ - Blog http://www.omdb.org/ - The new free film database -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/ferret-talk/attachments/20090210/d9dcac67/attachment-0001.bin>
Dimitar Yordanov
2009-Feb-11 00:39 UTC
[Ferret-talk] uninitialized constant ActsAsFerret (NameError)
Hi, Yes, this was the problem. I have forgotten to install the plugin to the demo application. Do appreciate your help. Dimitar P.S Actually the application manage to start, but does not work ... for now :) -- Posted via http://www.ruby-forum.com/.
Possibly Parallel Threads
- ''NameError: uninitialized constant <MyEntity>'' in console
- NameError uninitialized constant Ferret::Index::FieldInfos
- AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
- uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
- uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3