Flowdock
method

author

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: RailsGuides::Helpers
author(name, nick, image = 'credits_pic_blank.gif', &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/guides/rails_guides/helpers.rb, line 31
    def author(name, nick, image = 'credits_pic_blank.gif', &block)
      image = "images/#{image}"

      result = content_tag(:img, nil, :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
Register or log in to add new notes.