Add id to params to allow proper updates

pull/6827/head
Mohamed Wael Khobalatte 9 years ago
parent f5b5771070
commit 391ad369a0
  1. 2
      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

Loading…
Cancel
Save