I’m facing a quite little problem.
In my view.html.erb, I’m using words with German umlauts (ä, ö, ü..). Of course it’s not working, to write äöü in the html.erb like this, I need to write the normal HTML-umlauts-codes (ü) so the umlauts will be viewed in browser. This is working quite well, but it’s not working in the link name as you can see in this picture: http://img7.imagebanana.com/img/540vnz2y/umlaut.PNG
This is the code I’m using right now:
<p> <%= link_to "zurÜck", :controller => "employees", :action => "index" %>
does anybody know how to manage it that I can also use umlauts in link-names?
Rails 3 automatically escapes strings, use
html_safeto avoid escaping.