我有一个 Rails 应用程序,我想呈现一个动作而不使用我的应用程序布局(其中有页眉/页脚的东西)。
我怎么能这么做呢?
Here's some documentation about it: http://guides.rubyonrails.org/layouts_and_rendering.html
For your question:
render :layout => false
or
layout false
For Rails 5, in the controller, for the specific action:
def action render layout: false end