I have the following code in my view:
<%= form_tag searches_path, :method => 'get', :class => "nav_search" do %>
<%= hidden_field_tag "type", "publications" %>
<%= text_field_tag :query, nil, :placeholder => t('publications') %>
<% end %>
And this in my en.yml file:
en:
views:
layout:
publications: 'publications'
Although I18n works elsewhere on the site, whenever I put it in a placeholder like this, I get odd results. The text field contains this as a placeholder:
<span class=
Followed by this text outside of the placeholder:
Publications" type="text" />
Any idea what could be going on?
Easiest thing here is to specify the full translation key like this :