app/controllers/profiles_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def profile_params
    params \
      .require(:profile) \
      .permit(
        :id, :user_id, :first_name, :last_name, :birthday,
        :phone, :phone_verification, :location, :self_introduction,
        :school, :work, :timezone, :gender, :zipcode,
        :listing_count, :wishlist_count, :bookmark_count, :reviewed_count, :reservation_count,
        :ave_total, :ave_accuracy, :ave_communication, :ave_cleanliness, :ave_location,
        :ave_check_in, :ave_cost_performance, :created_at, :updated_at
      ) \
      .merge(user_id: current_user.id)
  end
def profile_params params . require ( :profile ) . permit ( :id , :user_id , :first_name , :last_name , :birthday , :phone , :phone_verification , :location , :self_introduction , :school , :work , :timezone , :gender , :zipcode , :listing_count , :wishlist_count , :bookmark_count , :reviewed_count , :reservation_count , :ave_total , :ave_accuracy , :ave_communication , :ave_cleanliness , :ave_location , :ave_check_in , :ave_cost_performance , :created_at , :updated_at ) . merge ( user_id : current_user . id ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .