aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides/helpers.rb
diff options
context:
space:
mode:
authorNate Berkopec <nate.berkopec@gmail.com>2013-10-27 15:14:41 -0400
committerNate Berkopec <nate.berkopec@gmail.com>2014-05-05 17:42:04 -0400
commit220528548b43b949a752ed9bcbc2f83fa6c75560 (patch)
treead2982b5fa9498f3209860ba36285196fe978824 /guides/rails_guides/helpers.rb
parent4efb0f373047c44249bc6542fdf9969e4c63dd88 (diff)
downloadrails-220528548b43b949a752ed9bcbc2f83fa6c75560.tar.gz
rails-220528548b43b949a752ed9bcbc2f83fa6c75560.tar.bz2
rails-220528548b43b949a752ed9bcbc2f83fa6c75560.zip
Guides: output valid HTML5
[ci skip]
Diffstat (limited to 'guides/rails_guides/helpers.rb')
-rw-r--r--guides/rails_guides/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/helpers.rb b/guides/rails_guides/helpers.rb
index 169453400f..a78c2e9fca 100644
--- a/guides/rails_guides/helpers.rb
+++ b/guides/rails_guides/helpers.rb
@@ -39,7 +39,7 @@ module RailsGuides
def author(name, nick, image = 'credits_pic_blank.gif', &block)
image = "images/#{image}"
- result = content_tag(:img, nil, :src => image, :class => 'left pic', :alt => name, :width => 91, :height => 91)
+ result = tag(:img, :src => image, :class => 'left pic', :alt => name, :width => 91, :height => 91)
result << content_tag(:h3, name)
result << content_tag(:p, capture(&block))
content_tag(:div, result, :class => 'clearfix', :id => nick)