Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

moshimoshi-rails-helper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moshimoshi-rails-helper

bundlerRubygems
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 21 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts