Forum: Ruby on Rails NameError in Devise/sessionsController#new

869d2bd11abd845f2b28c135de7568c7?d=identicon&s=25 Nazar Sir (nazarhussain)
on 2010-11-24 01:06
(Received via mailing list)
I created a sample application.
Added devise in it, it works fine.

Then added cancan gem into it.

Created an ability class. define some permissions.

Then added line


to the Application Controller, after that when i go to the page it gave the following error,

NameError in Devise/sessionsController#new
uninitialized constant Session
Rails.root: /home/nazar/rails_projects/sample_can

Please help me, i can not solve this issue.
8b6c926c2e63e4325d9e0a40ba472deb?d=identicon&s=25 Jorge Wander (Guest)
on 2013-12-13 20:07
(Received via mailing list)
Hi i am getting the same issue, can you tell me if you got a solution


El martes, 23 de noviembre de 2010 20:05:11 UTC-4, NazarHussain escribi:
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.