Sha256: 410d7beba2ab75667751bcaec6370a1947f20719a393ddbb43bc7d9ffe214c81

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 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.2'`, then: `$ bundle`.

* Or, download the [rails_emoji-1.2.gem](https://github.com/jsw0528/rails_emoji/raw/master/rails_emoji-1.2.gem), then `$ gem install ./rails_emoji-1.2.gem --no-ri --no-rdoc`.

## Usage

```ruby
":smile:".emoji_to_html
# 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.2 README.md