Permalink
Browse files

Fixed chapter list generation on index section, an empty pair of <ul>…

…</ul> was being created when the chapters had no children.
  • Loading branch information...
jaimeiniesta committed Mar 31, 2010
1 parent 4174d32 commit 1a0134c9426ee9bfa6a8094edd47914e6c0f1531
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/rails_guides/generator.rb
@@ -128,7 +128,7 @@ def set_index(body, view)
view.content_tag(:li, l.html_safe)
end
children_ul = view.content_tag(:ul, children.join(" ").html_safe)
children_ul = children.empty? ? "" : view.content_tag(:ul, children.join(" ").html_safe)
index << view.content_tag(:li, link.html_safe + children_ul.html_safe)
end

0 comments on commit 1a0134c

Please sign in to comment.