diff --git a/templates/page/captcha.html.ep b/templates/page/captcha.html.ep index 8a9010b..06f9bbf 100644 --- a/templates/page/captcha.html.ep +++ b/templates/page/captcha.html.ep @@ -17,11 +17,11 @@ <%= $error->[2] %> and <%= $error->[3] %>.

<% } =%> <%= label_for answer => "What roman numeral is this?: $roman_numeral" %> - <%= text_field 'answer', ( - id => 'answer', - maxlength => 1, - minlength => 1, - required => undef + <%= number_field 'answer', ( + id => 'answer', + min => 1, + max => 9, + required => undef ) %> <%= hidden_field number => $roman_numeral, id => 'number' %>