Rails 4 How Overwrite Devise Respond Path Upon Error

后端 未结 3 2106
说谎
说谎 2021-02-13 09:38

I\'ve been struggling for a while with this one. I have a Rails4/Devise 3.1 app with two users in the system:

  1. Graduates
  2. Employers

and o

3条回答
  •  我在风中等你
    2021-02-13 10:25

    Apparently, the :location parameter is ignored if you have an existing template called, well, in this case, #index. I still don't understand why Devise redirects to #index or #show when the resource has errors on it.

    I'll update this answer as I find out more.

提交回复
热议问题