I had the same problem, but restarting script/server fixed it. On Aug 13, 3:51 pm, yaphi <jconto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Also, it only happens when I hit /signup not /login on my production > machine > > On Aug 13, 2:13 pm, yaphi <jconto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I have already done this on my local machine. I am talking > > specifically getting this error on my production server. Locally > > everything works dandy! Same rails versions and everything. > > > On Aug 13, 2:12 am, Nitish Bezzala <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > >http://rails_security.lighthouseapp.com/projects/15332/tickets/2-not-... > > > > ...rename vendor/plugins/authentication-plugin to something without a > > > hyphen character (like ‘authentication’ or ‘restful_authentication’). > > > > Hopefully the maintainers will consider renaming this plugin. > > > > yaphi wrote: > > > > Is there some gem I may be missing that this requires? I am receiving > > > > the error on line 4 of the User model > > > >> include Authentication > > > > -- > > > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I had this problem and after much work discovered that the session on my browser was confusing the server somehow. My deleting the cookie I was able to access all the pages correctly without errors. On Aug 20, 6:56 pm, Daniel Moore <yahi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I had the same problem, but restarting script/server fixed it. > > On Aug 13, 3:51 pm, yaphi <jconto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Also, it only happens when I hit /signup not /login on my production > > machine > > > On Aug 13, 2:13 pm, yaphi <jconto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I have already done this on my local machine. I am talking > > > specifically getting this error on my production server. Locally > > > everything works dandy! Same rails versions and everything. > > > > On Aug 13, 2:12 am, Nitish Bezzala <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > wrote: > > > > >http://rails_security.lighthouseapp.com/projects/15332/tickets/2-not-... > > > > > ...rename vendor/plugins/authentication-plugin to something without a > > > > hyphen character (like ‘authentication’ or ‘restful_authentication’). > > > > > Hopefully the maintainers will consider renaming this plugin. > > > > > yaphi wrote: > > > > > Is there some gem I may be missing that this requires? I am receiving > > > > > the error on line 4 of the User model > > > > >> include Authentication > > > > > -- > > > > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Boys, Almost all the time this problem arises because , scope of the Authentication module falls under different context , Its always better to use fully qualified module names, class User < ActiveRecord::Base include ::Authentication include ::Authentication::ByPassword include ::Authentication::ByCookieToken include ::Authorization::AasmRoles This has to work all the time.... -Abhishek ( github.com/parolkar ) PS: I faced it while trying Typus,>> Typus::Authentication::ByPasswordNameError: uninitialized constant Typus::Authentication::ByPassword On Sep 6 2008, 10:39 am, Jonathan <jgeis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I had this problem and after much work discovered that the session on > my browser was confusing the server somehow. My deleting the cookie I > was able to access all the pages correctly without errors. > > On Aug 20, 6:56 pm, Daniel Moore <yahi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I had the same problem, but restarting script/server fixed it. > > > On Aug 13, 3:51 pm, yaphi <jconto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Also, it only happens when I hit /signup not /login on my production > > > machine > > > > On Aug 13, 2:13 pm, yaphi <jconto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I have already done this on my local machine. I am talking > > > > specifically getting this error on my production server. Locally > > > > everything works dandy! Same rails versions and everything. > > > > > On Aug 13, 2:12 am, Nitish Bezzala <rails-mailing-l...-ARtvInVfO7m5VldFQK4jKA@public.gmane.orgt> > > > > wrote: > > > > > >http://rails_security.lighthouseapp.com/projects/15332/tickets/2-not-... > > > > > > ...rename vendor/plugins/authentication-plugin to something without a > > > > > hyphen character (like ‘authentication’ or ‘restful_authentication’). > > > > > > Hopefully the maintainers will consider renaming this plugin. > > > > > > yaphi wrote: > > > > > > Is there some gem I may be missing that this requires? I am receiving > > > > > > the error on line 4 of the User model > > > > > >> include Authentication > > > > > > -- > > > > > Posted viahttp://www.ruby-forum.com/. > >
abhishek.parolkar wrote:> Boys, > Almost all the time this problem arises because , scope of the > Authentication module falls under different context , Its always > better to use fully qualified module names, > > class User < ActiveRecord::Base > include ::Authentication > include ::Authentication::ByPassword > include ::Authentication::ByCookieToken > include ::Authorization::AasmRoles > > This has to work all the time.... > > -Abhishek ( github.com/parolkar ) > > > > PS: I faced it while trying Typus, >>> Typus::Authentication::ByPassword > NameError: uninitialized constant Typus::Authentication::ByPasswordIt didn''t work for me. I had to comment out "config.active_record.observers = :user_observer". It may not be the perfect solution, but it saved the day. However, I don''t know what tomorrow brings :) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ozgun Koyun wrote:> > It didn''t work for me. > > I had to comment out "config.active_record.observers = :user_observer". > It may not be the perfect solution, but it saved the day. However, I > don''t know what tomorrow brings :)On the other hand, you should also check if "vendor/plugins/restful_authentication" is checked into your repository :), and it is deployed to the server successfully. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Daniel X Moore wrote:> I had the same problem, but restarting script/server fixed it.This help! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Daniel X Moore wrote:> I had the same problem, but restarting script/server fixed it.same to me -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.