|
3 | 3 | module RailsGuides |
4 | 4 | module Helpers |
5 | 5 | def guide(name, url, options = {}, &block) |
6 | | - link = content_tag(:a, :href => url) { name } |
| 6 | + link = content_tag(:a, href: url) { name } |
7 | 7 | result = content_tag(:dt, link) |
8 | 8 |
|
9 | 9 | if options[:work_in_progress] |
10 | | - result << content_tag(:dd, "Work in progress", :class => "work-in-progress") |
| 10 | + result << content_tag(:dd, "Work in progress", class: "work-in-progress") |
11 | 11 | end |
12 | 12 |
|
13 | 13 | result << content_tag(:dd, capture(&block)) |
@@ -39,10 +39,10 @@ def docs_for_menu(position=nil) |
39 | 39 | def author(name, nick, image = "credits_pic_blank.gif", &block) |
40 | 40 | image = "images/#{image}" |
41 | 41 |
|
42 | | - result = tag(:img, :src => image, :class => "left pic", :alt => name, :width => 91, :height => 91) |
| 42 | + result = tag(:img, src: image, class: "left pic", alt: name, width: 91, height: 91) |
43 | 43 | result << content_tag(:h3, name) |
44 | 44 | result << content_tag(:p, capture(&block)) |
45 | | - content_tag(:div, result, :class => "clearfix", :id => nick) |
| 45 | + content_tag(:div, result, class: "clearfix", id: nick) |
46 | 46 | end |
47 | 47 |
|
48 | 48 | def code(&block) |
|
0 commit comments