Hi,
Sometimes it is useful to use label with both a contained label and
supplied content, eg, in Devise’s default registration edit view this is
the supplied code for passwords:
[…]
<%= f.password_field :password, :autocomplete => "off" %>
It would be useful for formatting if this code could be:
[…]
<%= f.password_field :password, :autocomplete => "off" %>
Generating the following html:
[…]
[...]
Currently using a method (:password) is mutually exclusive with
supplying a
block.
So, in other words, if I submit a patch to do this, would it be accepted
?
Another alternative would be to have a label_content helper returning
the
calculated content.
Thanks,
Cheers,
Luis Reis