app/controllers/api/v1/user_training_stories_controller.rb
# Strong parameters checking for mass-assignment of a UserTrainingStory instance.
# Returns the whitelisted, filtered params Hash.
Strong parameters checking for mass-assignment of a UserTrainingStory instance.
Returns the whitelisted, filtered params Hash.
Strong parameters checking for mass - assignment of a UserTrainingStory instance . Returns the whitelisted filtered params Hash .
def user_training_story_params
    params
      .require( :user_training_story )
      .permit(
        :swam_date, :total_training_time, :notes,
        :user_training_id, :swimming_pool_id, :swimmer_level_type_id
      )
  end
def user_training_story_params params . require ( :user_training_story ) . permit ( :swam_date , :total_training_time , :notes , :user_training_id , :swimming_pool_id , :swimmer_level_type_id ) end
Strong parameters checking for mass-assignment of a UserTrainingStory instance.
Strong parameters checking for mass - assignment of a UserTrainingStory instance .