Class: Logout
Instance Attribute Summary
Attributes inherited from WebPage
Instance Method Summary collapse
-
#initialize(h) ⇒ Logout
constructor
A new instance of Logout.
- #to_html ⇒ Object
Methods inherited from WebPage
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_html ⇒ Object
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 |