Download:
Download (15.7 MB, 8:56)
alternative download for iPod & Apple TV (11.1 MB, 8:56)
Resourcen:
Quellcode:
[html]
<!– views/comments/_comment.html.erb –>
<div class="comment">
<%= strong link_to(comment.name, comment.url) %>
<p><%= comment.content %></p>
</div>
[/html]
[ruby]
# rails
"foo".html_safe?
safe = "safe".html_safe
safe.html_safe?
# application_helper.rb
def strong(content)
"<strong>#{h(content)}</strong>".html_safe
end
[/ruby]