method

author

rails latest stable - Class: RailsGuides::Helpers

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

author(name, nick, image = 'credits_pic_blank.gif', &block)
public

No documentation available.

# 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