Topic: Show image if number < 30 else show altternate image
I am trying to write a method that will show an image if the number of days is greater than 30 else show a different image.
num_of_days = (dor - transfer)/96400.to_i
if num_of_days > 30.0
being I do not yet know how to put the image in I tried to display the words green and red for the time being. Then in my veiw I did this:
<%= @hrreview.show_flag %>
but nothing shows at all, and but num_of_days does calculate and show the number of days.... so I am confused what I am doing wrong.