Changing devise default layouts

后端 未结 3 925
独厮守ぢ
独厮守ぢ 2021-02-05 10:17

I\'m trying to get devise to display a different layout template from the defaults for certain aspects.

I have this working when the user goes to the login page, but I n

3条回答
  •  梦毁少年i
    2021-02-05 10:40

    If you name your alternate layout devise.html.erb, then the gem's controllers will naturally use it, without needing to be asked. Saves some code.

提交回复
热议问题