options[:cow] end def describe(cow) "the #{cow.color} cow named #{cow.name}" end def render '<!DOCTYPE HTML>' << html do head do title "Cow app - #{describe(@cow)}" end body do h2 "Look, its #{describe(@cow)}! What's she say'n?" @cow.mu_amount.times do span class: 'sound' do 'mu' end end end end end end end 11 onsdag 14 september 11
{href: url_for(object)} attributes['data-confirm'] = options[:confirm] if options[:confirm] if options[:method] attributes['rel'] = 'nofollow' attributes['data-method'] = options[:method] end attributes['class'] = options[:class] if options[:class] a(attributes) do title end end end 12 onsdag 14 september 11