# Ferret Problem with Restful Authentication

**URL:** <https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663>\
**Category:** Rails\
**Created:** [May 5, 2008, 10:01am UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663 "2008-05-05T10:01:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrSBless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Post date:** [May 5, 2008, 10:01am UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663/1 "2008-05-05T10:01:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MrSBless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Post date:** [May 5, 2008, 10:56am UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663/2 "2008-05-05T10:56:04Z")

</div>

> 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?

---

<div class="post-metadata">

**Author:** ![MrSBless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Post date:** [May 5, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663/3 "2008-05-05T14:32:07Z")

</div>

Are you using acts\_as\_ferret? This will include ferret in every model  
you want to use it in.

---

<div class="post-metadata">

**Author:** ![MrSBless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Post date:** [May 7, 2008, 8:13am UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663/4 "2008-05-07T08:13:52Z")

</div>

# 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.

---

<div class="post-metadata">

**Author:** ![MrSBless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Post date:** [May 8, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663/5 "2008-05-08T13:37:13Z")

</div>

Yes there is require ‘acts\_as\_ferret’ in my environment.rb file.

---

<div class="post-metadata">

**Author:** ![MrSBless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Post date:** [May 7, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663/6 "2008-05-07T15:35:32Z")

</div>

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
