Skip to content

Instantly share code, notes, and snippets.

@thilo
Created January 28, 2009 10:24
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 thilo/53889 to your computer and use it in GitHub Desktop.
Save thilo/53889 to your computer and use it in GitHub Desktop.
<%= _("${TM_SELECTED_TEXT/"/\\"/g}") %> #rails gettext snippet for HTML text
_("${TM_SELECTED_TEXT/"/\\"/g}") #rails gettext snippet for ruby strings
To use same shortcut for both scope them a following
text.html.ruby #for html
string.quoted.single.ruby|string.quoted.double.ruby #for ruby strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment