I have an index.erb and now I want to show a picture dependent on a condition. So, I choose a If loop, but I don´t know how to call up a image written in html within a ruby command? Perhaps it´s easy, but I don´t have any idea, because i´m a newbie ;).
<%= if (condition 1 < 40) then
picture 1
elsif (condition 2 > 70) then
picture 2
else
picture 3 end %>
<img src="/public/images/picture1.png">
<img src="/public/images/picture2.png">
<img src="/public/images/picture3.png">
Please help :)