GithubHelp home page GithubHelp logo

hc5duke / jquery-raty-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thestu/jquery-raty-rails

0.0 1.0 0.0 123 KB

Gem to integrate the jQuery Raty plugin into the Rails 3 asset pipeline

License: Other

Ruby 97.12% JavaScript 2.88%

jquery-raty-rails's Introduction

jquery-raty-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.

jquery-raty-rails's People

Contributors

bmc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.