def update
      params[:confirmation_token] ||= params[:user][:confirmation_token]
      @confirmation_token = params[:user][:confirmation_token]
      with_unconfirmed_confirmable do
        if @confirmable.has_no_password?
          @confirmable.attempt_set_password(params[:user])
          if @confirmable.valid?
            do_confirm
          else
            do_show
            @confirmable.errors.clear #so that we wont render :new
          end
        else
          self.class.add_error_on(self, :email, :password_allready_set)
        end
      end
      if !@confirmable.errors.empty?
        do_show #Change this if you don't have the views on default path
      end
    end
def update
      params[:confirmation_token] ||= params[:user][:confirmation_token]
      @confirmation_token = params[:user][:confirmation_token]
      with_unconfirmed_confirmable do
        if @confirmable.has_no_password?
          @confirmable.attempt_set_password(params[:user])
          if @confirmable.valid?
            do_confirm
          else
            do_show
            @confirmable.errors.clear #so that we wont render :new
          end
        else
          self.class.add_error_on(self, :email, :password_allready_set)
        end
      end
      if !@confirmable.errors.empty?
        do_show #Change this if you don't have the views on default path
      end
    end
PUT /resource/confirmation