I'm using slimbox2 with rails. To make it work you include some markup as follows:
<a href="resources/images/weight1.jpg" rel="lightbox-a" title="Beautiful, isn't it?">a</a>
<a href="resources/images/example.jpg" rel="lightbox-a" title="Beautiful, isn't it?">a</a>
So I'm wondering, how do you grab the location of the image to place in the href? Relative addressing? Is their a helper that is useful in this situation?