我在我的Users_controller中定义了:
layout "intro", only: [:new, :create]
这是我的布局的样子: Intro.html.haml
!!! 5
%html{lang:"en"}
%head
  %title Intro
  = stylesheet_link_tag    "application", :media => "all"
  = javascript_include_tag "application"
  = csrf_meta_tags
%body{style:"margin: 0"}
  %header
    = yield
  %footer= debug(params)
当我渲染一个要求intro作为布局的页面时,它会嵌套在我的application.html.haml文件中,这不好。
有没有办法避免这种不受欢迎的布局嵌套?
提前致谢!