From 4a6d15f5b08f0d593f7cd78f001bd51a7b96ed7a Mon Sep 17 00:00:00 2001 From: Garrett Bowman Date: Fri, 13 Sep 2024 11:55:56 -0500 Subject: [PATCH 1/2] Debugging heroku --- Procfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..c2c566e --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: bundle exec puma -C config/puma.rb From 942b14c35a729c41bb94db3f4cd23aa465de763f Mon Sep 17 00:00:00 2001 From: Garrett Bowman Date: Fri, 13 Sep 2024 12:19:01 -0500 Subject: [PATCH 2/2] Corrected controller logic --- app/controllers/api/v1/user_events_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/v1/user_events_controller.rb b/app/controllers/api/v1/user_events_controller.rb index a2bde2b..ae6aca6 100644 --- a/app/controllers/api/v1/user_events_controller.rb +++ b/app/controllers/api/v1/user_events_controller.rb @@ -27,5 +27,7 @@ def show end private - params.require(:event).permit(:venue_name, :event_name, :date_time, :artist, :location, :user_id) + def event_params + params.require(:event).permit(:venue_name, :event_name, :date_time, :artist, :location, :user_id) + end end \ No newline at end of file