This gem wraps the jQuery context menu plug-in (https://github.com/medialize/jQuery-contextMenu) for convenient use in Rails 3. jQuery-contextMenu is a jQuery plug-in that pops up a menu when the user right clicks on an element to which the menu is assigned.
To include the plug-in in your rails application, modify your Gemfile to includ the following:
gem "jquery_context_menu-rails"
Next add the following line to app/assets/javascripts/application.js:
//= require jquery.contextMenu.js
And, in app/assets/stylesheets/application.css.scss add:
//= require jquery.contextMenu.css
These additions will make the jQuery-contextMenu plug-in available on all pages. If you want to limit it to a subset of pages, require the .js and .css files in the appropriate Rails Javascript and CSS files.
For documentation on how to use the context menu, please see the original jQuery-contextMenu site.
$.contextMenu is published under the MIT license and GPL v3, as is this package.