From b617f3d42ff1a81b8ba03ff883b1b0d30df3fb2d Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 30 Oct 2013 21:15:00 +0800 Subject: [PATCH] fix my welcome#index bug --- app/helpers/application_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0db12e24..e49e4f6d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1089,6 +1089,12 @@ module ApplicationHelper url end + def is_logout? + ret = cookies[:login_flag] == 1 ? true : false + cookies.delete(:login_flag) + ret + end + def back_url_hidden_field_tag url = back_url hidden_field_tag('back_url', url, :id => nil) unless url.blank?