Displaying 1 result from an estimated 1 matches for "show_album".
2006 Jun 06
8
How do I wrap a <%= link to %> around an image?
...p photo.filenumber .jpg"), "http://www.example.com") %>
But of course, all of the variables are being translated into HTML
literally instead of coughing up their values, so that''s no good.
So I tried this:
<%= link_to "something", {:action => ''show_album'', :album => @albumid,
:photo => photo.filenumber} %>
<img src="../../images/photos/<%= photo.photogroup %>/TN_<%=
photo.photogroup %><%= photo.filenumber %>.jpg" alt="<%=
photo.description %>">
Which works well, except that the...