Class: Logout

Inherits:
WebPage show all
Defined in:
lib/h2g_ajaxchat.rb

Instance Attribute Summary

Attributes inherited from WebPage

#css, #html, #js, #s

Instance Method Summary collapse

Methods inherited from WebPage

#to_css, #to_js, #to_s

Constructor Details

#initialize(h) ⇒ Logout

Returns a new instance of Logout.



299
300
301
# File 'lib/h2g_ajaxchat.rb', line 299

def initialize(h)
  @name = :logout
end

Instance Method Details

#to_htmlObject



303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'lib/h2g_ajaxchat.rb', line 303

def to_html()

  @html ||= '
	<div id="logoutform">
	<form action="logout" method="post">
<p>Are you sure you want to logout?</p>
<input type="submit" name="enter" id="enter" value="Yes" />
	</form>
	<a href="index">no, return to the chat page</a>
	</div>
	'

end