Saturday, November 17, 2012

Re: [Rails] devise problem : xpected /home/roelof/tamara_devise/app/controllers/sessions_controller.rb to define

On Wed, Nov 14, 2012 at 9:48 AM, roelof <rwobben@hotmail.com> wrote:

> Hello,
>
> Because I want to change something on login I copied the standard sessions
> controller to /app/controllers.
> Code :
>
> class Devise::SessionsController < DeviseController
...
> end
...
> but when I want to log in I see this error message :
>
> expected /home/roelof/tamara_devise/app/controllers/sessions_controller.rb
> to define SessionsController

Maybe it's gritching about the difference between
Devise::SessionsController (which you've got there) and just plain
SessionsController (which it says it's expecting that file to define).
Try removing the Devise:: part.

-Dave

--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate