2021-09-10から1日間の記事一覧
9/9朝会の続き 前回にモデルファイルで実装したimportメソッドを使用して CSVデータをインポート出来るボタンを実装していきます。 # app/controllers/tasks_controller.rb def import current_user.tasks.import(params[:file]) redirect_to tasks_url, not…
9/9朝会の続き 前回にモデルファイルで実装したimportメソッドを使用して CSVデータをインポート出来るボタンを実装していきます。 # app/controllers/tasks_controller.rb def import current_user.tasks.import(params[:file]) redirect_to tasks_url, not…