Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

insert the badge in a valid way

  • Loading branch information...
commit da770104d237f6ddd1515c6efbbb5fae871827f2 1 parent 1ac60dc
@fxn fxn authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.