Files
grecia/app/helpers/ballots_helper.rb
2016-09-10 16:22:40 +02:00

7 lines
147 B
Ruby

module BallotsHelper
def progress_bar_width(amount_available, amount_spent)
(amount_spent/amount_available.to_f * 100).to_s + "%"
end
end