Sha256: 9546b3a71f2972a849f62e8b9e1853cf2bc19f057ea1ec9123c325577c0c4538

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

![:kiss:](https://github.com/jsw0528/rails_emoji/raw/master/vendor/assets/images/emojis/kiss.png)
![:dancer:](https://github.com/jsw0528/rails_emoji/raw/master/vendor/assets/images/emojis/dancer.png)
![:octocat:](https://github.com/jsw0528/rails_emoji/raw/master/vendor/assets/images/emojis/octocat.png)
![:trollface:](https://github.com/jsw0528/rails_emoji/raw/master/vendor/assets/images/emojis/trollface.png)

---

## Installation

* Add to your Gemfile: `gem 'rails_emoji', '~> 1.6.2'`, then: `$ bundle`.

* Or, download the [rails_emoji-1.6.2.gem](https://rubygems.org/downloads/rails_emoji-1.6.2.gem), then `$ gem install ./rails_emoji-1.6.2.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.2 README.md