Skip to content

ActionController::InvalidAuthenticityToken in Users::SessionsController#create #46

@shalafister

Description

@shalafister

I like the starter kit. However, when I tried to sign up I received an error saying -> ActionController::InvalidAuthenticityToken in Users::SessionsController#create
I tried to solve this problem by adding ;

app/controllers/users/registrations_controller.rb

class RegistrationsController < Devise::RegistrationsController
skip_before_filter :verify_authenticity_token, :only => :create
end

But, then it gives an error in the forgot password screen. And also when I try to log in it redirects me automatically to sign in page. Not like in your demo

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions