Skip to content

Instantly share code, notes, and snippets.

Created March 31, 2012 20:23
Show Gist options
  • Save anonymous/2268138 to your computer and use it in GitHub Desktop.
Save anonymous/2268138 to your computer and use it in GitHub Desktop.
def m(message)
return "data-original-title = " + message
end
Then in my a view, i have m("This is title");, However only "This" is read by the m function
EDIT: This is how i Use it in a view
<li class= "<%= is_active?("dashboard")%>" id="home" <%= m("Takes You to Admin Home") %> ><%=link_to "Home", users_dashboard_path%></li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment