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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Are you using acts_as_ferret? This will include ferret in every model you want to use it in. On May 5, 5:00 am, "Mr. Bless" <rananirv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. On May 5, 5:31 pm, sergecpelletier <sergecpellet...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Are you using acts_as_ferret? This will include ferret in every model > you want to use it in. > > On May 5, 5:00 am, "Mr. Bless" <rananirv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On May 7, 3:13 am, "Mr. Bless" <rananirv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > On May 5, 5:31 pm, sergecpelletier <sergecpellet...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Are you using acts_as_ferret? This will include ferret in every model > > you want to use it in. > > > On May 5, 5:00 am, "Mr. Bless" <rananirv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes there is require ''acts_as_ferret'' in my environment.rb file. On May 7, 6:34 pm, sergecpelletier <sergecpellet...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 > > On May 7, 3:13 am, "Mr. Bless" <rananirv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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. > > > On May 5, 5:31 pm, sergecpelletier <sergecpellet...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Are you using acts_as_ferret? This will include ferret in every model > > > you want to use it in. > > > > On May 5, 5:00 am, "Mr. Bless" <rananirv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---