renderではなく、「render_to_string」を使用すれば良い。
例)views/templates/_default.html.erbを使用する前提。
render_to_string partial: "templates/default", locals: { title: params[:title], body: params[:body] }
renderではなく、「render_to_string」を使用すれば良い。
例)views/templates/_default.html.erbを使用する前提。
render_to_string partial: "templates/default", locals: { title: params[:title], body: params[:body] }