app/controllers/events_controller.rb
# Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .
def event_params
      params.require(:event).permit(
        :title, 
        :description,
        :start_date, 
        :end_date, 
        :start_time, 
        :end_time, 
        :user_id
      )
    end
def event_params params . require ( :event ) . permit ( :title , :description , :start_date , :end_date , :start_time , :end_time , :user_id ) end
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .