2021-01-06から1日間の記事一覧
ネスとしたルーティングに対してのform_with resources :boards, only: %i[index new create show] do resources :comments, shallow: true end としてルーティングを作成。 form_withでcommentに対してpostリクエストを送りたい。 def show @board = Board.…
ネスとしたルーティングに対してのform_with resources :boards, only: %i[index new create show] do resources :comments, shallow: true end としてルーティングを作成。 form_withでcommentに対してpostリクエストを送りたい。 def show @board = Board.…