Bug in password form helper?

26 views
Skip to first unread message

Ed W

unread,
Nov 8, 2012, 11:09:27 PM11/8/12
to mojol...@googlegroups.com
Hi, the following seems not to work as expected in Mojolicious 3.54, the
default text is placed *after* the field in the html output

<%= password_field 'passphrase' => 'some default' %>

However, changing the field type only, to text_field, and the expected
answer (default text) now appears

Is this expected?

Thanks

Ed W

Alister West

unread,
Nov 9, 2012, 12:04:42 AM11/9/12
to Mojolicious
Hi Ed,

password_field takes a name as the first param, then a list of attribute pairs.

You probably want:
<%= password_field 'passphrase', value => 'some default' %>

Although I would probably say that producing
<input type=password>blah</input> is a bug.

Cheers,


~~
 c|_|  alisterwest.com - mmm coffee!





Ed W

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To post to this group, send email to mojol...@googlegroups.com.
To unsubscribe from this group, send email to mojolicious+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.


Reply all
Reply to author
Forward
0 new messages