Questions tagged [raty]

Raty is a plugin for JQuery that displays interactive star-ratings.

Raty is a plugin for JQuery that can be used to display star-rating controls. Its icons and hints can be customized.

The Raty plugin is 7K in size (minified), and licensed under the MIT license.

Usage and download:

102 questions
0
votes
2 answers

Can I create a ViewHelper for a javascript-block?

I'm cleaning up my code of my Rails-app. I'm using the Raty-gem for my rating system. To render a #average_rating I'm using a script-block (picked this up in some tutorial) in the specific views. But since I'm using the #average_rating in over 6…
0
votes
1 answer

Average_rating with Raty isn't working in my loop

I'm using Raty for my reviews. I want to show the average score per Product in a loop. If I just use <%= product.average_user %>, then each product will show the correct average number/rating. If I connect the field by id to an embedded script to…
0
votes
2 answers

Undefined method `average'

I'm trying to calculate the average star rating of a movie object in my rails app using raty.js. Here's a snippet of my code: controllers/movies_controller.rb def show @avg_review = @movie.average(:rating) end private def set_movie @movie =…
adventuredoge
  • 345
  • 5
  • 17
0
votes
1 answer

Raty Plugin Rendering Stars Twice

As title specifies, I am adding a raty star plugin into one of my form templates (only doing this once) but for some reason, the script injects the stars twice.
1
Jeff
  • 650
  • 5
  • 16
0
votes
1 answer

Reset jQuery Raty selection on click event (jQuery)

I am using the jQuery Raty plugin within a jQuery UI dialog (basically a questionnaire style format). Using some custom jQuery I have created a questionnaire style interface that on each selection will show a 'new question' in which the user must…
Zabs
  • 13,852
  • 45
  • 173
  • 297
0
votes
1 answer

dynamic readOnly doesn't work

I am trying to read readonly value from attributes and set it in ratys readOnly but no success so far. this is the code I am using and you can see commented lines what I tried.