No commit activity in last 3 years
No release in over 3 years
This gem provides jQuery-contextMenufor your Rails application. (jQuery-contextMenu source code is at https://github.com/medialize/jQuery-contextMenu.git)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Ruby Gem for jQuery contextMenu Plug-In

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.

Usage

To include the plug-in in your rails application, modify your Gemfile to includ the following:

gem "jquery_context_menu-rails4"

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.

License

$.contextMenu is published under the MIT license and GPL v3, as is this package.