Skip to content

Instantly share code, notes, and snippets.

@andreapavoni
Created December 11, 2009 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreapavoni/254148 to your computer and use it in GitHub Desktop.
Save andreapavoni/254148 to your computer and use it in GitHub Desktop.
This:
<p>Please <%= link_to "sign in", :controller => 'account', :action => 'login' %> to comment.</p>
Could be:
<p>
<%= I18n.t('views.formulas.please') %>
<%= link_to I18n.t('views.actions.sign_in'), :controller => 'account', :action => 'login' %>
<%= I18n.t('views.actions.to_comment') %>.
</p>
you can organize texts in actions, formulas, etc... to simplify their management
cheers,
a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment