先週の行ったことの振り返りとして記述 2022/1/30 〜 2/4 (言語化のための記録)
行ったこと
・Railsでログインユーザーidをデータベースに保存
・BootStrap5の導入のサインアップ画面の調整
躓いた点
・サーバー側、event_controlle.rbの create でuser_idを保存したいが、CSRFトークンチェックでエラーになる。
どのように解決したか
devise_token_authを使いトークン認証を通すことで解決できるが、
今回はskip_before_actionをコントローラーに記述し、エラーをのがれた。
問題点
skip_before_actionだとセキュリティ上好ましくないので、改めて改修する。