From 391ad369a005a93032c511b3e1c450e7493671ac Mon Sep 17 00:00:00 2001 From: Mohamed Wael Khobalatte Date: Tue, 3 Nov 2015 00:31:29 +0100 Subject: [PATCH] Add id to params to allow proper updates --- app/controllers/meetings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/meetings_controller.rb b/app/controllers/meetings_controller.rb index c57d70b1a0..6259ac682b 100644 --- a/app/controllers/meetings_controller.rb +++ b/app/controllers/meetings_controller.rb @@ -164,6 +164,6 @@ class MeetingsController < ApplicationController private def meeting_params params.require(:meeting).permit(:title, :location, :start_time, :duration, :start_date, :start_time_hour, - participants_attributes: [:email, :name, :invited, :attended, :user, :user_id, :meeting]) + participants_attributes: [:email, :name, :invited, :attended, :user, :user_id, :meeting, :id]) end end