def update
    @settings = current_user.settings
    if @settings.update_attributes(params[:settings])
      render json: {}, status: :ok
    else