You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i am trying to show the avg rating in decimal like .5,1.5,2.5 then the stars formation does not happening.I change the method of product decorator like this-:
def stars
avg_rating.to_f || 0
end
But then stars does not appear i want that actual avg rating like 1.5,2.5,3.5 will also be shown in the avg rating.
Please help.
The text was updated successfully, but these errors were encountered:
When i am trying to show the avg rating in decimal like .5,1.5,2.5 then the stars formation does not happening.I change the method of product decorator like this-:
def stars
avg_rating.to_f || 0
end
But then stars does not appear i want that actual avg rating like 1.5,2.5,3.5 will also be shown in the avg rating.
Please help.
The text was updated successfully, but these errors were encountered: