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>*</
span>"
when i put the following on a form;
<%= f.label :name %>
it returns the following error;
"translation data {:html=>"Titel van jou job <span>*</span>"} 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
--
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.