2021-05-17から1日間の記事一覧
掲示板の編集と削除機能 [掲示板の編集機能] 掲示板の編集機能を実装するのにコントローラに以下のように記述する [app/controllers/boards_controller.rb] def edit @board = current_user.boards.find(params[:id]) end def update @board = current_user.…
掲示板の編集と削除機能 [掲示板の編集機能] 掲示板の編集機能を実装するのにコントローラに以下のように記述する [app/controllers/boards_controller.rb] def edit @board = current_user.boards.find(params[:id]) end def update @board = current_user.…