Permalink
Browse files

insert the badge in a valid way

  • Loading branch information...
1 parent 1ac60dc commit da770104d237f6ddd1515c6efbbb5fae871827f2 @fxn fxn committed Apr 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/rails_guides/generator.rb
View
2 railties/guides/rails_guides/generator.rb
@@ -203,7 +203,7 @@ def check_fragment_identifiers(html, anchors)
end
def insert_edge_badge(html)
- html.sub(/<body[^>]*>/, '\&<img src="images/edge_badge.png" style="position:fixed; right:0px; top:0px; border:none; z-index:100"/>')
+ html.sub(/<body[^>]*>/, '\&<div><img src="images/edge_badge.png" alt="edge badge" style="position:fixed; right:0px; top:0px; border:none; z-index:100"/></div>')
end
end
end

0 comments on commit da77010

Please sign in to comment.