****_controller.rb
def index
@timeplan = Timeplan.find(params[:timeplan_id])
render partial: 'list', locals: { timeplan: @timeplan }, layout: false
end
locals: テンプレートに渡す変数
layout: レイアウトを表示するか
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
def index
@timeplan = Timeplan.find(params[:timeplan_id])
render partial: 'list', locals: { timeplan: @timeplan }, layout: false
end
locals: テンプレートに渡す変数
layout: レイアウトを表示するか
Register as a new user and use Qiita more conveniently
Go to list of users who liked