Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

how to apply "jQuery Raty" to all rows of a TemplateField ( Item Template ) of Gridview in ASP.NET

I had tried to use "jQuery Raty" to populate stars to all rows of a specific TemplateField ( Item Template ) of Gridview in ASP.NET with following codes, but only the first row of the ...
user1188849's user avatar
1 vote
1 answer
213 views

Cannot reset display of Jquery Raty on one rating div

I have successfully implemented the Raty star rating in my ASP.NET Core app but I am having one issue that I can’t seem to resolve. I am using the lib for a dual purpose (see Sample image of Raty ...
MicJarek's user avatar
0 votes
1 answer
108 views

jQuery Raty duplicates stars when going back and forward using browser's navigation

I have a question regarding jQuery Raty plugin. I have a page that lists posts for cars where every post has ratings 1-5. When I go to a specific car post and the go back to the page that show all ...
Webbie's user avatar
  • 599
0 votes
0 answers
110 views

RatyJs Star Images not showing Rails 6 / Bootstrap 4

My Rails project doesn't show star images with Bootstrap Modal. But it shows all the images with the Bulma. Application.js import 'bootstrap' require("@rails/ujs").start() require("...
Shahin Farzane's user avatar
2 votes
0 answers
1k views

Uncaught TypeError: $(...).raty is not a function

I got this error in the view whhen I call Raty Uncaught TypeError: $(...).raty is not a function Chrome Console Screen I think I fail to load the js file or there is some sort of conflict? I put the ...
user avatar
1 vote
0 answers
381 views

raty stars not showing in view

I would like to use raty for rating the users of my Rails 5.1.6 application and found Elizabeth Le's documentation on Raty and Ruby on Rails. As suggested in that documentation, I went to the GitHub ...
Asarluhi's user avatar
  • 1,290
1 vote
1 answer
88 views

Is it possible to know if a star is on ? (JQuery Raty Plugin)

First of all, excuse-me if I do some english mistakes, I am french. I am using the raty jquery plugin in order to put something in my favorites, I have got 1 star which can be clicked to set something ...
Hugo Bulach's user avatar
0 votes
0 answers
267 views

Rails 5 Star Rating jQuery Plugin Raty only showing star in first form in table

Hi guys I'm using Star Rating jQuery Plugin Raty to do some review / rating things. For now I'm having a list of data that need to be review, and then the ways to review would be in a boostrap modal ...
Kowa JiaLiang's user avatar
0 votes
2 answers
787 views

Rails 5 Star Rating jQuery Plugin Raty doesn't passing rating value

I'm newbie to rails, and I'm using Star Rating jQuery Plugin Raty to do some review / rating things. For now I'm having a list of data that need to be review, and then the ways to review would be in a ...
Kowa JiaLiang's user avatar
0 votes
0 answers
130 views

jquery.raty stars in ruby on rails

I'm making a tutorial with Mackenzie child for building a movie review app and I got really stuck in the part to add the jquery.raty stars in my project. I'd be very thankful if you anyone could spot ...
Max Fernandes's user avatar
1 vote
0 answers
72 views

Can't get raty plugin working - PHP

I've been having trouble getting raty star rating plugin working with PHP. When I run the function is just displays a text box with the value, but no stars! Here is my html... (I have a number of div'...
franklenehan32's user avatar
0 votes
0 answers
146 views

Ratings with Raty not showing up

So I am following a tutorial and using cloud 9 as my editor. When I run my program and submit a review. Mackenzie's (the person that made the tutorial) review form lets the viewer select stars as ...
iiRosie1's user avatar
  • 162
1 vote
0 answers
346 views

Webpack module dependency recognition failure "$(...).raty is not a function"

I can't for the life of me figure this one out. I am use the raty() plugin but I am getting the console error "TypeError: $(...).raty is not a function". In my webpack.config.js: - entry: { app:...
U4EA's user avatar
  • 892
-1 votes
1 answer
545 views

Rails gem Ratyrate showings stars only after refresh and not saving

(Saw many posts with these problems and got it working, so I will upload solution) I'm using Ratyrate without Devise and the stars only appear after a web refresh and they do not save the previously ...
Diiru's user avatar
  • 97
0 votes
2 answers
1k views

Rails app not showing raty js plugin

Getting these errors with raty js I am using Rails version 5.0 jquery.raty.self-628421be04f36f7a8fa8b9b884c6d7824d6f8bdeba4f172b131f15aa63f713e8.js?body=1:761 Uncaught ReferenceError: jQuery is not ...
Alex Virdee's user avatar
0 votes
2 answers
481 views

Not displaying star rating on production (heroku)

I'm using the gem ratyrate, and locally it works fine, but in production it generates a 404 error of the images. Some solutions I found were these, but they do not work /initializer/raty_helper.rb ...
Carlos Uriel Santiago's user avatar
0 votes
1 answer
62 views

How to highlight the selected custom icon with raty

Hello, I am using raty with the iconRange option and i am wondering how i can only highlight the selected custom icon. my code is $(".ratySmiley").raty({ starType: 'i', hints: ['bad', '...
tomzi's user avatar
  • 1,235
0 votes
0 answers
148 views

RoR - Chartkick.js and Ratyrate (styling issues)

With some coding and getting the ratyrate to work into chartkick.js - there are very minimal tutorials regarding styling changes. The data is working into the bar graph as shown below; HTML Setup ...
Biggztyle's user avatar
  • 111
-1 votes
1 answer
46 views

Rails jquery raty show username above its stars rate

I'm using the jquery raty gem and I want to add the rating for each user below their username. This is what I have in the products.show html.erb: <div class="row"> <div class="col-md-...
Defoe's user avatar
  • 371
1 vote
1 answer
252 views

jquery raty get score in 0.5 interval

I am using jQuery Raty JS, and i want score always in an interval of 0.5, no matter where it clicks on stars For eg. 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5 Expected result: stars should display in an ...
user7036598's user avatar
2 votes
1 answer
627 views

Raty jQuery plugin not working Rails 5

I'm new to RoR and I'm having issues displaying the Raty plugin on my app. Also, I've noticed that another Js function has stopped working since I've added Raty so I believe there's a conflict ...
catch22's user avatar
  • 1,673
0 votes
1 answer
2k views

jquery raty require rating

I'm trying to figure out how to get the jquery Raty plugin required. Does anyone one know of an easy way just to make sure the user has clicked a star. if anyone need to see anyone part of code please ...
jakecolor's user avatar
2 votes
1 answer
83 views

Want to store rate while add/create new product

I'm working on one application where I have to add rate a product while I'm adding(creating) it. Right now I have used RatyRate but it is not storing the rates while I create/add product first time. ...
Hiren Bhalani's user avatar
0 votes
0 answers
630 views

how do i get the total rating average with ratyrate?

I am having two issues, -Rating with the same user multiple times is creating and error -Calculating the total average is returning nil 186: test "Same user should not be able to submit multiple ...
fenec's user avatar
  • 5,768
0 votes
1 answer
272 views

Rateit or Raty in Info Window (Google Maps)

I am trying to implement a rating system inside the infowindow on Google Maps API version 3. I tried both Rateit and Raty and I coudn't make neither of them work. I tried this code here and it doesn'...
Jean Phelippe's user avatar
1 vote
2 answers
774 views

How do I make the star ratings retain the value when I edit a review?

I'm using the jquery raty star rating system and it worked. Except that when I edit a review for example that has 4 stars, the edit page shows 0 stars. Should this how the jquery raty behaves? Or is ...
Jeramae Bohol's user avatar
4 votes
0 answers
1k views

Why is my raty stars not working/loading/appearing in Heroku although it works perfectly fine on development?

I tried all the solution I can found here like precompiling locally, changed jquery.raty.js to jquery.raty.js.erb and others but it doesn't worked for me. I placed the star-half.png, star-off.png, ...
Jeramae Bohol's user avatar
0 votes
1 answer
474 views

I'm using raty.js star rating system, how do I show the equivalent integer value of star for my avg. rating?

The code below will show for example: Average Rating ** Based on 2 reviews So since it's average rating is 2 stars, how do I show the integer value "2"? So it will be like: ** 2 <h2 class="...
Jeramae Bohol's user avatar
2 votes
1 answer
576 views

JQuery raty not working when the columns of JQuery datatable collapses

I am using JQuery raty inside JQuery datatable. It works fine when the browser is at its full width. While testing the responsiveness as the columns of the datatable is collpsed, the stars of raty ...
Milan Titaju's user avatar
2 votes
1 answer
971 views

raty rating score not properly displayed

I use the raty plugin to display rating stars on multiple items. I initialise the rating score over a data attribute like <span class="rating_score" data-rating="{{ review.rating}}" ></...
deroccha's user avatar
  • 1,173
0 votes
2 answers
46 views

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 ...
Sebastian Plasschaert's user avatar
0 votes
1 answer
73 views

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. ...
Sebastian Plasschaert's user avatar
0 votes
2 answers
1k views

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(...
adventuredoge's user avatar
0 votes
1 answer
153 views

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. <div id="star-rate" style="...
Jeff's user avatar
  • 660
0 votes
1 answer
566 views

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 ...
Zabs's user avatar
  • 14.1k
0 votes
1 answer
410 views

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. <script type="...
Mert's user avatar
  • 6,532
0 votes
1 answer
281 views

Raty JS not working properly in Vex modal

I have a vex pop up that works properly, however the Raty ratings inside are not working properly. They are working properly everywhere else on the site, but not in this modal. The stars show up for ...
m. sherman's user avatar
0 votes
1 answer
62 views

Using Jquery-Raty with Meteor

I am trying to add star ratings populated by a field in my database in a template rendered callback. I believe the problem is that raty can not find the images but I've had trouble getting it to work. ...
TDmoneybanks's user avatar
1 vote
1 answer
218 views

Jquery raty is theres a way to callback the cancel button?

Does anyone here who familiar with jquery raty? is theres a way to callback the cancel button? here's my code $(".ratings").raty({ cancel: function() { return $(this).attr("data-cancel")...
Rafael Topasi's user avatar
2 votes
3 answers
2k views

jQuery Raty set score inside click event

I'm trying to use this rating plugin but I was unable to set the new score on click. I'm making an ajax request on click event and get new calculated score. I wanted to set the new score inside the ...
HasanG's user avatar
  • 13.1k
3 votes
1 answer
2k views

Raty Star rating in Google map infowindow

I have added marker on google map with some search results. var infowindow = new google.maps.InfoWindow(); var marker, i; for (i = 0; i < locations.length; i++) { var contentString="";var ...
shruti's user avatar
  • 780
2 votes
1 answer
94 views

Rails Issue with nested_form gem and jquery

I have a nested form and using nested_form gem by ryan bates in which i am using raty stars in the field, the form is given as <%= f.fields_for :round_questions do |question| %> <%= ...
user4965201's user avatar
0 votes
0 answers
188 views

Rails 4 raty and nested forms button to add questions and update star rate

Hi I have a form and i want to show the nested form to add questions and update the raty stars according to answers the form is given as <%= form_for @interview_round do |f| %> <div ...
user4965201's user avatar
3 votes
1 answer
2k views

Using Jquery Raty in Rails 4 and showing average of star rating

i have a Rails app in which I am using jquery Raty plugin i have included Raty in gemfile gem 'jquery-raty-rails', github: 'bmc/jquery-raty-rails' and in the application.js i have included //= ...
user4965201's user avatar
1 vote
3 answers
2k views

Ratyrate stars not loading in production (heroku)

So ive got ratyrate working in development just fine by adding <%= javascript_include_tag 'ratyrate.js', "data-turbolinks-track" => false %> to the body of my view. Prior to this the stars ...
DanaeB's user avatar
  • 85
0 votes
1 answer
56 views

KnockoutJs - Calculate Database Ratings

Take a look at this first: http://pastebin.com/823NMiWc This is Knckoutjs + Jquery Raty Plugin Assume these are columns from a database: story_rev: ko.observable(), animation_rev: ko.obervable(), ...
Terrabyte's user avatar
  • 342
0 votes
1 answer
127 views

Raty.js not loading once infinite scroll occurs in Rails

I'm using the infinite scroll option from Masonry-rails and am implementing a rating system via Raty.js. When the first few pins show up, the average rating is shown, however, after infinite scroll, ...
Shafquat's user avatar
  • 103
0 votes
1 answer
281 views

Show pin/post average rating in index Ruby on Rails and Raty.js

I've used Ruby on Rails and Raty.js to create a rating system for my pins. You can see the average rating in the individual Show pages for each pin. I'd like to incorporate that into my index file. ...
Shafquat's user avatar
  • 103
1 vote
2 answers
530 views

How to center jquery Raty stars inside a bootstrap 3 table cell?

I have been trying to get the stars from the Raty plugin to vertically align inside a bootstrap table, but I can't get it to work. I have tried: <table class="table table-striped"> <tbody&...
Dramal's user avatar
  • 177
0 votes
1 answer
324 views

Can't get jQuery raty plugin to work with rails + Backbone.js app

I'm using the Jquery raty plugin from http://www.wbotelhos.com/raty. I have a Rails + Backbone.js reviews app, and whenever I add the review form view, I can't get any stars to "turn on" whenever I ...
user3769323's user avatar