fix my welcome#index bug

This commit is contained in:
yanxd 2013-10-30 21:15:00 +08:00
parent 9319a7f87b
commit b617f3d42f
1 changed files with 6 additions and 0 deletions

View File

@ -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?