Sha256: 713464282d240cd39042aae1e658d3a47c9267e8dd79ae5f28fb70b7d0b7592d
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# [Emoji](http://www.emoji-cheat-sheet.com/) for Ruby on Rails     --- ## Installation * Add to your Gemfile: `gem 'rails_emoji', '~> 1.6.0'`, then: `$ bundle`. * Or, download the [rails_emoji-1.6.0.gem](https://rubygems.org/downloads/rails_emoji-1.6.0.gem), then `$ gem install ./rails_emoji-1.6.0.gem --no-ri --no-rdoc`. ## Usage ```ruby ":smile:".emojify # output: "<img src="/assets/emojis/smile.png" width="20" height="20" title=":smile:" alt=":smile:" class="emoji" />" RailsEmoji.render ":smile:", :host => "http://MrZhang.me", :size => 64, :class => "emoji-smile" # output: "<img src="http://MrZhang.me/assets/emojis/smile.png" width="64" height="64" title=":smile:" alt=":smile:" class="emoji-smile" />" ``` ## License Licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_emoji-1.6.0 | README.md |