wazery / ratyrate

:star: A Ruby Gem that wraps the functionality of jQuery Raty library, and provides optional IMDB style rating.
http://ratingmoviestore.herokuapp.com
237 stars 120 forks source link

Certain options/symbols not working #40

Open tomurho opened 10 years ago

tomurho commented 10 years ago

While certain options/symbols such as :star work, certain options are not functioning for me such as :enable_half (false doesn't work for me), and :can_change (true doesn't work for me).

Also, when I return to a page I need to refresh the browser for the ratings to appear.

wazery commented 10 years ago

I will check that, and report to you.

Thanks Islam Wazery

wazery commented 10 years ago

There is no option called can_change, can you tell me where did you find it so I remove any reference to it.

I fixed the issue with enable_half option and pushed to master

Please add this line to your Gemfile

gem 'ratyrate', :github => 'wazery/ratyrate'

Then run the following:

bundle update
rails server

Thanks Islam Wazery

nbirnel commented 10 years ago

I'm using gem 'ratyrate', :github => 'wazery/ratyrate'

and I am still getting the issue of ratings not appearing until a refresh. Is this a bug, or am I doing something wrong? code is at https://github.com/nbirnel/Library-Application/tree/ratyrate2, and I have ratyrate_rateable 'rating' in books model.

wazery commented 10 years ago

Yes this issue isn't fixed yet, I will investigate the cause of it and report back here, thanks for your patience and please consider starring this repo :smile: :star:

keithomalley commented 9 years ago

I'm also getting this problem, the star rating will show up if i enter the URL directly or if i refresh the page, the div wrapper is there in the html, but the star images and cancel icon aren't. The problem seems to be caused from using rails link_to helper but I'd really appreciate a fix

chbrown1293 commented 9 years ago

Also getting the refresh/direct url issue.

TylerSangster commented 9 years ago

Has there been any update on this issue? I want to use your gem but this is a major problem for me.

chbrown1293 commented 9 years ago

@TylerSangster this might help, worked for me. http://stackoverflow.com/questions/30291314/ratyrate-stars-not-loading-in-production-heroku