I have the following in an html.erb file, using link_to
to get a hyperlink and t()
to internationalize my text. But it looks very clunky:
<p><%= t('session.new_user') %><%= link_to(t('session.signup_now'), signup_path) %></p>
Splitting onto multiple lines seems wrong since the text will all appear on the same line on screen but is there a better syntax to avoid the two consecutive <%= %>
blocks?
<%= t('session.new_user') %><%= link_to t('session.signup_now'), signup_path %>
` – Papadeltasierra Dec 04 '15 at 09:25