LoginSignup
5
7

More than 5 years have passed since last update.

Rails の render で複数の変数を渡す

Posted at

以下の記述で2つの変数を渡せる
<%= render 'comments/form', {item: @item, comment: @comment} %>

5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7