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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
826abce840ff21491a97813dd38b81a2?d=identicon&s=25 Nazar S. (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.
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:
This topic is locked and can not be replied to.