app/controllers/confirmations_controller.rb
# Remove the first skip_before_filter (:require_no_authentication) if you
# don't want to enable logged users to access the confirmation page.
Remove the first skip_before_filter (:require_no_authentication) if you
don't want to enable logged users to access the confirmation page.
Remove the first skip_before_filter ( : require_no_authentication ) if you don ' t want to enable logged users to access the confirmation page .
def with_unconfirmed_confirmable
    confirmation_token = params[:confirmation_token].to_s
    @confirmable = User.find_or_initialize_with_error_by(:confirmation_token, confirmation_token)
    if !@confirmable.new_record?
      @confirmable.only_if_unconfirmed { yield }
    end
  end
def with_unconfirmed_confirmable confirmation_token = params [ :confirmation_token ] . to_s @confirmable = User . find_or_initialize_with_error_by ( :confirmation_token , confirmation_token ) if ! @confirmable . new_record? @confirmable . only_if_unconfirmed { yield } end end
Remove the first skip_before_filter (:require_no_authentication) if you
don't want to enable logged users to access the confirmation page.
Remove the first skip_before_filter ( : require_no_authentication ) if you don ' t want to enable logged users to access the confirmation page .