Created
March 31, 2012 20:23
-
-
Save anonymous/2268138 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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