app/helpers/application_helper.rb
# Returns the HTML code for displaying a total count value, sided by a number
# of images, one for each step of the total count.
Returns the HTML code for displaying a total count value, sided by a number
of images, one for each step of the total count.
Returns the HTML code for displaying a total count value sided by a number of images one for each step of the total count .
def count_with_image( count, step, image_name, align = :right )
    if align == :right
      "#{ count.to_i } #{image_tag(image_name) * (count.to_i / step)}".html_safe
    else
      "#{image_tag(image_name) * (count.to_i / step)} #{ count.to_i }".html_safe
    end
  end
def count_with_image ( count , step , image_name , align = :right ) if align == :right "#{ count.to_i } #{image_tag(image_name) * (count.to_i / step)}" . html_safe else "#{image_tag(image_name) * (count.to_i / step)} #{ count.to_i }" . html_safe end end
Returns the HTML code for displaying a total count value, sided by a number
of images, one for each step of the total count.
Returns the HTML code for displaying a total count value sided by a number of images one for each step of the total count .
count
<not_specific>
step
<not_specific>
image_name
<not_specific>
align
<not_specific>