Sha256: 3eb49a14d3c9078ddbb627ab0487d28af7cf085ffc9b5496ece77961225b3328
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.1'`, then: `$ bundle`. * Or, download the [rails_emoji-1.6.1.gem](https://rubygems.org/downloads/rails_emoji-1.6.1.gem), then `$ gem install ./rails_emoji-1.6.1.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.1 | README.md |