Moshimoshi Rails Helper
moshimoshi-rails-helper
is the official Rails helper for Moshimoshi, a service for setting global user bios.
Installation
Add this line to your application's Gemfile:
gem 'moshimoshi-rails-helper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install moshimoshi-rails-helper
Usage
moshimoshi-rails-helper
uses a text tag, which means it can be easily integrated into any Rails view.
<%= moshimoshi_tag(@user.email) %>
Moshimoshi uses the MD5 of your user's email to retrieve the bio, so no user emails are passed across the web.
You can customize the error message if a bio cannot be retrieved for the user's email:
<%= moshimoshi_tag(@user.email), error: 'Bio missing from Moshimoshi' %>
Contributing
Pull requests always welcome!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request