app/controllers/ratings_controller.rb
def rating_params
      params.require(:rating).permit(:difficulty, :police, :pedestrian, :description, :image)
      # params.require(:rating).permit(:difficulty, :police, :pedestrian, :description)
      # params.require(:rating).permit(:difficulty, :police, :pedestrian, :time, :description)
    end
#the attributes the the rating table that are needed for create edit and update
the attributes the the rating table that are needed for create edit and update
the attributes the the rating table that are needed for create edit and update
def rating_params
      params.require(:rating).permit(:difficulty, :police, :pedestrian, :description, :image)
    end
def rating_params params . require ( :rating ) . permit ( :difficulty , :police , :pedestrian , :description , :image ) end
the attributes the the rating table that are needed for create edit and update
the attributes the the rating table that are needed for create edit and update
# params.require(:rating).permit(:difficulty, :police, :pedestrian, :description) # params.require(:rating).permit(:difficulty, :police, :pedestrian, :time, :description)