Created
June 23, 2011 16:52
-
-
Save thomasv314/1042974 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
<% if [email protected]? %> | |
<% @mentions.each do |mention| %> | |
$('#mentions').append('<%= escape_javascript("<div class=\"mention\"> #{mention[:text]} <br/><em>by #{link_to mention[:user][:name], "http://twitter.com/" + mention[:user][:screen_name]} </em></div> | |
") %>'); | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm new to javascript in general, I have the remote response working but when it appends the html it isn't styled, resulting in something like this: http://i.imgur.com/n3ZE1.png
can anyone help? :)