NameError in Devise/sessionsController#new

76 views
Skip to first unread message

NazarHussain

unread,
Nov 23, 2010, 7:05:11 PM11/23/10
to Ruby on Rails: Talk
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

load_and_authorize_resource

to the Application Controller, after that when i go to the page
http://0.0.0.0:3000/users/sign_in 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

unread,
Dec 13, 2013, 2:06:14 PM12/13/13
to rubyonra...@googlegroups.com
Hi i am getting the same issue, can you tell me if you got a solution for this?  

thx
Reply all
Reply to author
Forward
0 new messages