0
我的sign_up頁面停止使用我的自定義佈局進行渲染,其他設備視圖正常工作,我無法弄清楚什麼是錯誤的。Rails設計註冊sign_up不使用自定義佈局進行渲染
下面是相關細節:
的Gemfile:
gem 'rails', '4.2.5'
gem 'devise'
初始化:
Rails.application.config.to_prepare do
Devise::SessionsController.layout "form"
Devise::RegistrationsController.layout "form"
Devise::ConfirmationsController.layout "form"
Devise::UnlocksController.layout "form"
Devise::PasswordsController.layout "form"
end
registrations_controller.rb:
class Users::RegistrationsController < Devise::RegistrationsController
before_action :configure_sign_up_params, only: [:create]
before_action :configure_account_update_params, only: [:update]
layout "layouts/account", only: [:edit]
# GET /resource/sign_up
# def new
# super
# end
...
form.html.haml中存在日Ë意見/佈局文件從服務器
輸出:
Processing by Users::RegistrationsController#new as HTML
Rendered users/registrations/new.html.haml within layouts/application (6.7ms)