You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module ReviewsHelper
|
|
def average_stars(movie)
|
|
if movie.average_stars.zero?
|
|
content_tag(:strong, "No reviews")
|
|
else
|
|
pluralize(number_with_precision(movie.average_stars, precision: 1) , "star")
|
|
end
|
|
end
|
|
end
|