7 lines
147 B
Ruby
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 |