タグ

avatarとgemに関するjune29のブックマーク (1)

  • Avatar

    → ‘Avatar’ What support for avatars Installing sudo gem install avatar The basics Set up Avatar::source (by default, a Gravatar) Use Avatar::source.avatar_url_for(person, options) or a view helper Demonstration of usage app/helpers/people_helper.rb: class PeopleHelper include Avatar::View::ActionViewSupport end app/views/people/show.html.erb: <%= avatar_tag(@current_user, :size => 40) %> Forum htt

    june29
    june29 2008/07/07
    Ruby で Gravatar.これは簡単に使えそう!
  • 1