diff options
author | Xavier Noria <fxn@hashref.com> | 2010-04-04 08:42:54 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-04-04 08:42:54 -0700 |
commit | 7d7e0627a0490b6b4ddb0ee5429264ccd46f1245 (patch) | |
tree | 107d5369a86cd158aaf6a11efa7e9ff0477d267e /railties/guides/rails_guides | |
parent | b352b97ff590f0db27432a8a4d3df3c632780b52 (diff) | |
download | rails-7d7e0627a0490b6b4ddb0ee5429264ccd46f1245.tar.gz rails-7d7e0627a0490b6b4ddb0ee5429264ccd46f1245.tar.bz2 rails-7d7e0627a0490b6b4ddb0ee5429264ccd46f1245.zip |
fixes duplicate element IDs in some guides
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index b8c1913819..f577182f5f 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -227,7 +227,7 @@ module RailsGuides anchors = Set.new html.scan(/<h\d\s+id="([^"]+)/).flatten.each do |anchor| if anchors.member?(anchor) - puts "*** DUPLICATE HEADER ID: #{anchor}, please consider rewording" + puts "*** DUPLICATE ID: #{anchor}, please put and explicit ID, e.g. h4(#explicit-id), or consider rewording" else anchors << anchor end |