maybe spruce it up in the future
@ -34,4 +34,9 @@ class ApplicationController < ActionController::Base
render :nothing => true if params[Settings.honeypot].present?
end
# Overwriting the sign_out redirect path method
def after_sign_out_path_for(resource_or_scope)
page_path('signed_out')
@ -23,6 +23,11 @@ class PagesController < ApplicationController
@contact_form = ContactForm.new(init)
when "home"
options[:layout] = 'home' unless request.xhr?
when "signed_out"
if user_signed_in?
flash[:warning] = "You are still authenticated"
redirect_to after_sign_in_path_for(current_user) and return
render options
@ -0,0 +1,5 @@
<div class="page-header">
<h1>You've signed out of EntryDNS. <strong>Now go mobile.</strong></h1>
<p>Just visit our web site from your mobile phone or tablet.</p>
</div>