Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

session generator not working for Authlogic in Rails 3.Help me out !

I installed authlogic and created a signup mechanism.And for creating a sign in mechanism I tried to generate the session controlers as below but rails 3 throws error as follows. How do I create the user_session and proceed with authlogic in rails 3 ?

:~/work_space/rails_apps/sample_authentication$ rails generate session user_session  
Could not find generator session  
like image 693
Hemanth Avatar asked Nov 14 '22 06:11

Hemanth


1 Answers

as for the time being the generator for session still doesn't work with rails 3. However here

https://github.com/jonathandean/authlogic_example

the tutorial in the readme explains how to use authlogic (and generate a session-model) with rails 3. Basically all you have to do is to generate a normal model.

like image 126
Lukas Avatar answered Nov 24 '22 01:11

Lukas