I am using Restful Authentication plugin for the login system.
Whenever I include ferret in my application it shows me error. I am
using the ferret for the other model as well in which it works very
well. Can anyone suggest me why is Restful Authentication causing a
problem.
Whenever I include ferret in my application it shows me error.
what error?
how do you use ferret?
on which tables/columns do you use it? especially: do you use it on
anything thats connected with the authentication?
Are you using acts_as_ferret? This will include ferret in every model
you want to use it in.
I am using acts_as_ferret in User.rb. But whenever I add this in User
model and try to start the server I get the following error
C:/rails books/aps/vendor/plugins/svn/lib/scope_out.rb:70:in
method_missing': u ndefined local variable or method
acts_as_ferret’ for #<Class:
0x4cb1638> (NameE
rror)
from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record
/base.rb:1532:in method_missing_without_paginate' from C:/rails books/aps/vendor/plugins/will_paginate/lib/ will_paginate/f inder.rb:93:in
method_missing’
from C:/rails books/aps/app/models/user.rb:49
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:203:in load_without_new_constant_marking' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_suppo rt/dependencies.rb:203:in
load_file’
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:342:in new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_suppo rt/dependencies.rb:202:in
load_file’
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:94:in require_or_load' ... 44 levels... from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/ server.rb:3 9 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in
ge
m_original_require’
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `re
quire’
from script/server:3
Please help me to get out of this problem.
Yes there is require ‘acts_as_ferret’ in my environment.rb file.
Are you using the plugin or the gem.
If you’re using the gem, you need to include a require
‘acts_as_ferret’ in you environment.rb file to make it available to
the project.
That’s the only thing I can see here as the plugin would have it
loaded.
Serge