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

Blank stars not shows #136

Open kubarazny opened 7 years ago

kubarazny commented 7 years ago

I have an issue. I have two divs for view rating: first is shows user current rate (and there is an issue - it shows only 1 star, user cannot vote for more stars.

zrzut ekranu z 2016-12-03 19-57-06

<%= rating_for_user photo, current_user, "ogolna", half_show: true, enable_half: true, star: 10 %>

Before it I had sth like this:

<%= rating_for photo, "ogolna", disable_after_rate: false %>

but it shows average rating (but then user can vote for more stars, but he can't view how many stars he gave stars.

for average rating I have

<%= rating_for photo, "ogolna", disabled: true, readonly: true %>

and it works good.

How to shows blank stars for rating for user?