diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2018-04-03 15:19:57 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2018-04-03 15:19:57 +0530 |
commit | ecb6ee5948afae2eac34d4ec60b5eb188b9086a8 (patch) | |
tree | 682a7943bdbb8ac69f347f7bab4138429dc29fec /guides/rails_guides | |
parent | c9b606dfe799ba93494f3e21c913f9505d97888a (diff) | |
download | rails-ecb6ee5948afae2eac34d4ec60b5eb188b9086a8.tar.gz rails-ecb6ee5948afae2eac34d4ec60b5eb188b9086a8.tar.bz2 rails-ecb6ee5948afae2eac34d4ec60b5eb188b9086a8.zip |
Cleanup credits related code as it is removed now in PR #32429
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/helpers.rb | 9 | ||||
-rw-r--r-- | guides/rails_guides/kindle.rb | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/guides/rails_guides/helpers.rb b/guides/rails_guides/helpers.rb index a6970fb90c..5ab1388c29 100644 --- a/guides/rails_guides/helpers.rb +++ b/guides/rails_guides/helpers.rb @@ -38,15 +38,6 @@ module RailsGuides end end - def author(name, nick, image = "credits_pic_blank.gif", &block) - image = "images/#{image}" - - result = tag(:img, src: image, class: "left pic", alt: name, width: 91, height: 91) - result << content_tag(:h3, name) - result << content_tag(:p, capture(&block)) - content_tag(:div, result, class: "clearfix", id: nick) - end - def code(&block) c = capture(&block) content_tag(:code, c) diff --git a/guides/rails_guides/kindle.rb b/guides/rails_guides/kindle.rb index 5c4f7d159c..d370541d2e 100644 --- a/guides/rails_guides/kindle.rb +++ b/guides/rails_guides/kindle.rb @@ -35,7 +35,7 @@ module Kindle def generate_front_matter(html_pages) frontmatter = [] html_pages.delete_if { |x| - if x =~ /(toc|welcome|credits|copyright).html/ + if x =~ /(toc|welcome|copyright).html/ frontmatter << x unless x =~ /toc/ true end |