app/controllers/users_backoffice/agendas_controller.rb
def agenda_params
    params.require(:agenda).permit(:user_id, morning_one: [], morning_two: [],
                                   morning_three: [], morning_four: [], morning_five: [],
                                   afternoon_one: [], afternoon_two: [], afternoon_three: [],
                                   afternoon_four: [], afternoon_five: [], afternoon_six: [],
                                   evening_one: [], evening_two: [], evening_three: [],
                                   evening_four: [], evening_five: [])
  end
# 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 agenda_params
    params.require(:agenda).permit(:user_id, morning_one: [], morning_two: [],
                                   morning_three: [], morning_four: [], morning_five: [],
                                   afternoon_one: [], afternoon_two: [], afternoon_three: [],
                                   afternoon_four: [], afternoon_five: [], afternoon_six: [],
                                   evening_one: [], evening_two: [], evening_three: [],
                                   evening_four: [], evening_five: [])
  end
def agenda_params params . require ( :agenda ) . permit ( :user_id , morning_one : [ ] , morning_two : [ ] , morning_three : [ ] , morning_four : [ ] , morning_five : [ ] , afternoon_one : [ ] , afternoon_two : [ ] , afternoon_three : [ ] , afternoon_four : [ ] , afternoon_five : [ ] , afternoon_six : [ ] , evening_one : [ ] , evening_two : [ ] , evening_three : [ ] , evening_four : [ ] , evening_five : [ ] ) end
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .