Another newbie issue from me I'm afraid!!
Due to my lack of knowledge regarding Rails i have come up against another issue today, this time linking to an image.
<%= link_to( image_tag(office.image_url, :class => "lightbox_trigger"), office.image_url) %>
So Rails is cycling through items in a database and inserting the 'image_url' that is the html reference to the image itself and displays it. This is wrapped in a link_to tag that currently generates the following HTML.
<a href="/store/office"><img alt="1984" class="lightbox_trigger" src="/assets/group_shots/1984.jpg" /></a>
How do i make the anchor href show as <a href="/assets/group_shots/1984.jpg">?