aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/rails_guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-04-01 11:27:48 +0200
committerXavier Noria <fxn@hashref.com>2010-04-01 11:27:48 +0200
commitda770104d237f6ddd1515c6efbbb5fae871827f2 (patch)
tree1ac0b993f9a29626763e8ccec9b867eb35d46f79 /railties/guides/rails_guides
parent1ac60dc6ac40c74d841c9f09d706f99d65896ac6 (diff)
downloadrails-da770104d237f6ddd1515c6efbbb5fae871827f2.tar.gz
rails-da770104d237f6ddd1515c6efbbb5fae871827f2.tar.bz2
rails-da770104d237f6ddd1515c6efbbb5fae871827f2.zip
insert the badge in a valid way
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r--railties/guides/rails_guides/generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb
index aa24ed2722..c40bbc32da 100644
--- a/railties/guides/rails_guides/generator.rb
+++ b/railties/guides/rails_guides/generator.rb
@@ -203,7 +203,7 @@ module RailsGuides
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