Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Emoji for Ruby on Rails
Ruby
Branch: master
Failed to load latest commit information.
lib Bump version
vendor/assets/images/emojis Update emoji images
README.md Bump version
TOOL.md Tweak
rails_emoji.gemspec Update gem spec setting

README.md

Emoji for Ruby on Rails Gem Version

:kiss: :dancer: :octocat: :trollface:


Installation

  • Add to your Gemfile: gem 'rails_emoji', '~> 1.8.0', then: $ bundle.

  • Or, download the rails_emoji-1.8.0.gem, then $ gem install ./rails_emoji-1.8.0.gem --no-ri --no-rdoc.

Usage

':smile:'.emojify
# <img src="/assets/emojis/smile.png" class="emoji" width="20" height="20" alt=":smile:" title=":smile:" />

RailsEmoji.render ':smile:', size: '64x64', class: 'emoji-smile'
# <img src="/assets/emojis/smile.png" class="emoji-smile" width="64" height="64" alt=":smile:" title=":smile:" />

RailsEmoji.render ':smile:', size: nil, title: 'Smile!'
# <img src="/assets/emojis/smile.png" class="emoji" alt=":smile:" title="Smile!" />

RailsEmoji.render ':smile:', size: 32, host: 'http://MrZhang.me'
# <img src="http://MrZhang.me/assets/emojis/smile.png" class="emoji" width="32" height="32" alt=":smile:" title=":smile:" />

License

Licensed under the MIT License.

Something went wrong with that request. Please try again.