我目前正在使用 Thoughtbot 的 Clearance gem,在尝试让不同的控制器呈现不同的布局时注意到它并不总是呈现正确的布局,它会恢复到我的标准布局。我目前正在通过初始化程序设置布局
Clearance::SessionsController.layout 'landing'
Clearance::UsersController.layout 'landing'
我目前正在使用 Thoughtbot 的 Clearance gem,在尝试让不同的控制器呈现不同的布局时注意到它并不总是呈现正确的布局,它会恢复到我的标准布局。我目前正在通过初始化程序设置布局
Clearance::SessionsController.layout 'landing'
Clearance::UsersController.layout 'landing'