I’m having trouble replacing my link from text to an image in my Rails app.
In my .erb view, I have:
<%= link_to('Up!', vote_up_article_path(article), :method => :article) %>
I’ve got an arrow image in my public/images folder but I can’t seem to be able to display it instead of the Up! text. Does anyone have any solutions that I can try? Any help is much appreciated. Thanks!
Something like this should work:
(Obviously, change
up.pngto whatever the name of the image is.)