Ben Wilson
2009-Jan-12 02:24 UTC
Restful Authentication Uninitialized Constant in Production...
rake db:migrate RAILS_ENV=production rake aborted! uninitialized constant User::Authentication The preceding I encounter when attempting to migrate to the production database. My google powers have escaped me. Everywhere says Restful Authentication is missing in the production server. However, to validate this, I attempted this on the same server as the development, which works. So, what could cause the production environment to not see something that is there, when the development environment can? Ahh. While writing this, I decided to change: RAILS_GEM_VERSION = ''2.2.2'' unless defined? RAILS_GEM_VERSION to this RAILS_GEM_VERSION = ''2.1.0'' unless defined? RAILS_GEM_VERSION And, things work fine. Now to find out why. I don''t like having to step downward... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ben Wilson
2009-Jan-12 02:34 UTC
Re: Restful Authentication Uninitialized Constant in Production...
On Jan 11, 9:24 pm, Ben Wilson <dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> rake db:migrate RAILS_ENV=production > rake aborted! > uninitialized constant User::Authentication > > The preceding I encounter when attempting to migrate to the production > database. My google powers have escaped me. Everywhere says Restful > Authentication is missing in the production server. However, to > validate this, I attempted this on the same server as the development, > which works. > > So, what could cause the production environment to not see something > that is there, when the development environment can? > > Ahh. While writing this, I decided to change: > > RAILS_GEM_VERSION = ''2.2.2'' unless defined? RAILS_GEM_VERSION > > to this > > RAILS_GEM_VERSION = ''2.1.0'' unless defined? RAILS_GEM_VERSION > > And, things work fine. Now to find out why. I don''t like having to > step downward...Nope, that just gets me to... ActionView::TemplateError (uninitialized constant User::Authentication) So, WTF? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Teedub
2009-Jan-12 03:02 UTC
Re: Restful Authentication Uninitialized Constant in Production...
http://www.mail-archive.com/rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org/msg00009.html says ...rename vendor/plugins/authentication-plugin to something without a hyphen character (like ‘authentication’ or ‘restful_authentication’). Hope this helps On Jan 11, 6:34 pm, Ben Wilson <dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jan 11, 9:24 pm, Ben Wilson <dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > rake db:migrate RAILS_ENV=production > > rake aborted! > > uninitialized constant User::Authentication > > > The preceding I encounter when attempting to migrate to the production > > database. My google powers have escaped me. Everywhere says Restful > > Authentication is missing in the production server. However, to > > validate this, I attempted this on the same server as the development, > > which works. > > > So, what could cause the production environment to not see something > > that is there, when the development environment can? > > > Ahh. While writing this, I decided to change: > > > RAILS_GEM_VERSION = ''2.2.2'' unless defined? RAILS_GEM_VERSION > > > to this > > > RAILS_GEM_VERSION = ''2.1.0'' unless defined? RAILS_GEM_VERSION > > > And, things work fine. Now to find out why. I don''t like having to > > step downward... > > Nope, that just gets me to... > > ActionView::TemplateError (uninitialized constant > User::Authentication) > > So, WTF?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ben Wilson
2009-Jan-12 03:51 UTC
Re: Restful Authentication Uninitialized Constant in Production...
Thanks for the quick reply. The following are the names of the plugins I presently have installed. None have hyphens. drwx------ 3 ... ... 4096 2009-01-11 15:38 haml/ drwx------ 5 ... ... 4096 2009-01-11 21:25 restful_authentication/ drwx------ 5 ... ... 4096 2009-01-11 15:38 role_requirement/ On Jan 11, 10:02 pm, Teedub <twscann...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> http://www.mail-archive.com/rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org/msg0000... > > says > ...rename vendor/plugins/authentication-plugin to something without a > hyphen character (like ‘authentication’ or ‘restful_authentication’). > > Hope this helps > > On Jan 11, 6:34 pm, Ben Wilson <dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Jan 11, 9:24 pm, Ben Wilson <dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > rake db:migrate RAILS_ENV=production > > > rake aborted! > > > uninitialized constant User::Authentication > > > > The preceding I encounter when attempting to migrate to the production > > > database. My google powers have escaped me. Everywhere says Restful > > > Authentication is missing in the production server. However, to > > > validate this, I attempted this on the same server as the development, > > > which works. > > > > So, what could cause the production environment to not see something > > > that is there, when the development environment can? > > > > Ahh. While writing this, I decided to change: > > > > RAILS_GEM_VERSION = ''2.2.2'' unless defined? RAILS_GEM_VERSION > > > > to this > > > > RAILS_GEM_VERSION = ''2.1.0'' unless defined? RAILS_GEM_VERSION > > > > And, things work fine. Now to find out why. I don''t like having to > > > step downward... > > > Nope, that just gets me to... > > > ActionView::TemplateError (uninitialized constant > > User::Authentication) > > > So, WTF?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ben Wilson
2009-Jan-13 00:54 UTC
Re: Restful Authentication Uninitialized Constant in Production...
Further information on my inability to get Restful Authentication to work: /home/.../.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:102:in `const_missing'' app/models/user.rb:24 lib/authenticated_system.rb:125:in `login_from_cookie'' lib/authenticated_system.rb:12:in `current_user'' lib/authenticated_system.rb:6:in `logged_in?'' (eval):2:in `send'' (eval):2:in `logged_in?'' app/views/shared/_entryway.html.haml:3 app/views/layouts/standard.html.haml:15 This is from running "script/server RAILS_ENV=production" when I just run script/server, things work fine on the prod server. Both environments work fine on the dev server... On Jan 11, 10:51 pm, Ben Wilson <dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for the quick reply. The following are the names of the plugins > I presently have installed. None have hyphens. > > drwx------ 3 ... ... 4096 2009-01-11 15:38 haml/ > drwx------ 5 ... ... 4096 2009-01-11 21:25 restful_authentication/ > drwx------ 5 ... ... 4096 2009-01-11 15:38 role_requirement/ > > On Jan 11, 10:02 pm, Teedub <twscann...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >http://www.mail-archive.com/rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org/msg0000... > > > says > > ...rename vendor/plugins/authentication-plugin to something without a > > hyphen character (like ‘authentication’ or ‘restful_authentication’). > > > Hope this helps > > > On Jan 11, 6:34 pm,BenWilson<dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On Jan 11, 9:24 pm,BenWilson<dau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > rake db:migrate RAILS_ENV=production > > > > rake aborted! > > > > uninitialized constant User::Authentication > > > > > The preceding I encounter when attempting to migrate to the production > > > > database. My google powers have escaped me. Everywhere says Restful > > > > Authentication is missing in the production server. However, to > > > > validate this, I attempted this on the same server as the development, > > > > which works. > > > > > So, what could cause the production environment to not see something > > > > that is there, when the development environment can? > > > > > Ahh. While writing this, I decided to change: > > > > > RAILS_GEM_VERSION = ''2.2.2'' unless defined? RAILS_GEM_VERSION > > > > > to this > > > > > RAILS_GEM_VERSION = ''2.1.0'' unless defined? RAILS_GEM_VERSION > > > > > And, things work fine. Now to find out why. I don''t like having to > > > > step downward... > > > > Nope, that just gets me to... > > > > ActionView::TemplateError (uninitialized constant > > > User::Authentication) > > > > So, WTF?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
rp8 -_-
2009-Jan-14 01:56 UTC
Re: Restful Authentication Uninitialized Constant in Production...
Ben Wilson wrote:> Further information on my inability to get Restful Authentication to > work: > > /home/.../.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active_support/ > dependencies.rb:102:in `const_missing'' > app/models/user.rb:24 > lib/authenticated_system.rb:125:in `login_from_cookie'' > lib/authenticated_system.rb:12:in `current_user'' > lib/authenticated_system.rb:6:in `logged_in?'' > (eval):2:in `send'' > (eval):2:in `logged_in?'' > app/views/shared/_entryway.html.haml:3 > app/views/layouts/standard.html.haml:15 > > This is from running "script/server RAILS_ENV=production" when I just > run script/server, things work fine on the prod server. Both > environments work fine on the dev server...Are you using AASM by any chance? You might need to add "require ''aasm''" in your application.rb. Regards, rp8 ======================http://competo.com -- 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 -~----------~----~----~----~------~----~------~--~---