0.05
No commit activity in last 3 years
No release in over 3 years
Emoji for Ruby on Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1.0, ~> 3.1
 Project Readme

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.