rails layout を デフォルト(application.html.erb)から変更したい時
こんな風に使い分けることができる
class ArticlesController < ApplicationController def without_layout render layout: false end def presentation render layout: "presentation" end end
某サービスにスライド機能つけようとしています
こんな風に使い分けることができる
class ArticlesController < ApplicationController def without_layout render layout: false end def presentation render layout: "presentation" end end
某サービスにスライド機能つけようとしています