else
respond_to do |format|
format.html { render "tabelle/show" }
end
end
我想呈现页面......只有该页面中的代码......不添加<head>
...布局和<body>
ruby on rails 中的字段。
我只想在页面 tabelle/show.html.haml 中显示代码的结果
最佳答案
你可以这样做:
format.html { render "tabelle/show", :layout => false }
关于ruby-on-rails - ruby on rails 如何在没有布局和其他头部字段的情况下呈现页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15949319/