Module: GeoLabels::RatingHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/geo_labels/rating_helper.rb

Instance Method Summary collapse

Instance Method Details

#show_rating_for(record, helper_topic) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/geo_labels/rating_helper.rb', line 4

def show_rating_for(record, helper_topic)
  tag.div class: 'rating-container item', data: {
    topic: helper_topic,
    record: record.class.name,
    record_id: record.id,
    rating: record.rating[helper_topic].value
  } do
    tag.span 'Hi theree'
  end
end