Class: Login

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

Instance Attribute Summary

Attributes inherited from WebPage

#css, #js, #s

Instance Method Summary collapse

Methods inherited from WebPage

#to_css, #to_html, #to_js, #to_s

Constructor Details

#initialize(h = {}) ⇒ Login

Returns a new instance of Login.



311
312
313
# File 'lib/h2g_ajaxchat.rb', line 311

def initialize(h={})

end

Instance Method Details

#htmlObject



315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/h2g_ajaxchat.rb', line 315

def html()

  @html ||= '
<div id="loginform">
<form action="login" method="post">
<p>Please enter your name to continue:</p>
<label for="name">Name:</label>
<input type="text" name="name" id="name" autofocus="true"/>
<input type="submit" name="enter" id="enter" value="Enter" />
</form>
</div>
'

end