Iván Vega Rivera
2005-Nov-21 23:17 UTC
Help with Salted Login Generator, error: undefined method ''login_required''
Hi, I''m trying to get this generator to work, and I followed the steps detailed here: http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart But whenever I try to open for example, /user/signup, I get that error. I''ve searched on Google, but no one seems to have the same problem, so could you help me out? Thanks! Ivan V.
James Adam
2005-Nov-22 10:15 UTC
Re: Help with Salted Login Generator, error: undefined method ''login_required''
Did you *definitely* perform step 4? The login_required method is defined (as far as I remember) in /lib/user_system.rb, so you need to be absolutely sure that this file has been loaded, and that the UserSystem module has been included into the ApplicationController class - james On 11/21/05, Iván Vega Rivera <ivanvega-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to get this generator to work, and I followed the steps > detailed here: > > http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart > > But whenever I try to open for example, /user/signup, I get that error. > > I''ve searched on Google, but no one seems to have the same problem, so > could you help me out? > > Thanks! > > Ivan V. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Iván Vega Rivera
2005-Nov-22 23:41 UTC
Re: Help with Salted Login Generator, error: undefined method ''login_required''
Heh. Somehow I forgot copying the first two lines... LOL Thanks for pointing out my mistake. Ivan V. James Adam wrote:> Did you *definitely* perform step 4? The login_required method is > defined (as far as I remember) in /lib/user_system.rb, so you need to > be absolutely sure that this file has been loaded, and that the > UserSystem module has been included into the ApplicationController > class > > - james > > On 11/21/05, Iván Vega Rivera <ivanvega-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi, >> >> I''m trying to get this generator to work, and I followed the steps >> detailed here: >> >> http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart >> >> But whenever I try to open for example, /user/signup, I get that error. >> >> I''ve searched on Google, but no one seems to have the same problem, so >> could you help me out? >> >> Thanks! >> >> Ivan V. >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >