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 do_show
    confirmation_token = params[:confirmation_token].to_s
    @confirmable = User.find_or_initialize_with_error_by(:confirmation_token, confirmation_token)
    @requires_password = true
    self.resource = @confirmable
    render 'devise/confirmations/show' 
  end
def do_show confirmation_token = params [ :confirmation_token ] . to_s @confirmable = User . find_or_initialize_with_error_by ( :confirmation_token , confirmation_token ) @requires_password = true self . resource = @confirmable render 'devise/confirmations/show' 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 .
#Change this if you don't have the views on default path