app/controllers/trainings_controller.rb
# Strong parameters checking for mass-assignment of a Training instance.
# Returns the whitelisted, filtered params Hash.
Strong parameters checking for mass-assignment of a Training instance.
Returns the whitelisted, filtered params Hash.
Strong parameters checking for mass - assignment of a Training instance . Returns the whitelisted filtered params Hash .
def training_params
    params
      .require( :training )
      .permit(
        :title, :description,
        :min_swimmer_level,
        :max_swimmer_level,
        :user_id,
        training_rows_attributes: [
          :part_order,
          :group_id, :group_times, :group_start_and_rest, :group_pause,
          :times, :distance, :start_and_rest, :pause,
          :training_id, :exercise_id, :training_step_type_id,
          :arm_aux_type_id, :kick_aux_type_id, :body_aux_type_id, :breath_aux_type_id
        ]
      )
  end
def training_params params . require ( :training ) . permit ( :title , :description , :min_swimmer_level , :max_swimmer_level , :user_id , training_rows_attributes : [ :part_order , :group_id , :group_times , :group_start_and_rest , :group_pause , :times , :distance , :start_and_rest , :pause , :training_id , :exercise_id , :training_step_type_id , :arm_aux_type_id , :kick_aux_type_id , :body_aux_type_id , :breath_aux_type_id ] ) end
Strong parameters checking for mass-assignment of a Training instance.
Strong parameters checking for mass - assignment of a Training instance .