Rails & Devise: Override SessionsController

前端 未结 3 426
臣服心动
臣服心动 2021-02-01 23:22

I\'m trying to set up a sign in form on my home page. I managed to do it by following the Wiki

Except, if the login infos are incorrect, the /devise/session/new.ht

3条回答
  •  盖世英雄少女心
    2021-02-02 00:13

    debugging hint attempt to delete any record (a user would be coherent); if you go to the show action, it is not a devise configuration matter. For this case, follow along (other cases are answered around here)

    I cannot see where in the view you are calling the root javascript file.

    I've banged my head on this one a few times, using different javascript set-ups in different layouts. Whatever your header reads, the call

    <%= javascript_include_tag 'my-differntly-fangled-application' %>
    

    needs to have the relevant manifest file include

    //= require jquery
    //= require jquery_ujs
    

提交回复
热议问题