No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Integrates jquery-raty into the Rails 3 asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.2.3
 Project Readme

jquery-raty-rails

WARNING: Effectively abandonware.

I haven't actually used Rails in several years now, and it's unlikely I'll be maintaining this package going forward. I'd be happy for someone else to take over maintenance. In the meantime, I doubt I'll have the time to update this one to newer versions of Rails.


Introduction

jquery-raty-rails is a Ruby gem that wraps the jQuery Raty plugin, allowing its image and Javascript files to be served via the Rails asset pipeline.

jQuery Raty is a useful "star rating" jQuery plugin.

This project is not officially associated with the jQuery Raty project.

Installation

Install the gem

jquery-raty-rails requires Rails 3, since it depends on the asset pipeline.

To install, add one of the following to your Rails project's Gemfile:

gem 'jquery-raty-rails'                                  # Released version
gem 'jquery-raty-rails', github: 'bmc/jquery-raty-rails' # Bleeding edge

Then, install the gem by running bundle install.

Configure the assets

Modify the Sprockets manifest in your application.js file to include one of the following, depending on whether you want to include the compressed Javascript or the uncompressed Javascript:

//= require jquery.raty
//= require jquery.raty.min

Usage

At this point, your Rails application has access to jQuery Raty. See the jQuery Raty web site for instructions on how to use the plugin.

Notes

  • The jQuery Raty images are installed so that their assets paths won't conflict with same-named images in the application or in other gems.
  • This blog post, by Stephen Ball, was a huge help in figuring out how to create this gem.

Copyrights, License, etc.

jQuery Raty is copyright © Washington Botelho.

jquery-raty-rails copyright © 2012 Brian M. Clapper and is released under a BSD license.