return <<-HTML <li> <a href = "some-link">Link-Title</a> </li> HTML
What are <<-HTML on the first line and HTML on the last line for?
It's a heredoc.
http://en.wikipedia.org/wiki/Here_document#Ruby
1.4m articles
1.4m replys
5 comments
57.0k users