Hi all,
in Rails3 you have label support for activerecord model attributes by
default.
Since Rails3 defaults to “no-html-safe” strings, you need to
append .html to your key in order to process it as html. This however
does not seem to work for activerecord model attributes. E.g.
activerecord.attributes.job.name.html => “Titel van jou job *</
span>”
when i put the following on a form;
<%= f.label :name %>
it returns the following error;
“translation data {:html=>“Titel van jou job *”} can not
be used with :count => 1”
Leaving the .html returns the string but in a non-html-safe way.
Is there a workaround for this?
Best regards,
Stijn