module EasyAsPie
module ViewHelper
#
73%
def easy_as_pie percent, label = nil
raise ArgumentError, "Must take a percent argument" unless percent
pie_options = {:"data-percent" => percent}
label ||= "#{percent}%"
content_tag :div, label, pie_options
end
end
end