[英]Can I have a page in my Ruby on Rails app that doesn't use my application.html.erb template?
我正在Ruby on Rails Web應用application.html.erb
的views/layouts
文件夾中使用application.html.erb
作為模板。 但是有一頁我不希望使用模板。 這可能嗎?
當然可以
render :layout => false
在行動的最底層。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.