<td><%= ruler.pixel_width %></td>
<td><%= ruler.cm_width() %>/<%= ruler.in_width() %></td>
<td>
- <a href="/show/ruler_<%= ruler.pixel_width %>px_<%= ruler.cm_width() %>centimeters.png?fromgallery=true">cm</a>/<a href="/show/ruler_<%= ruler.pixel_width %>px_<%= ruler.in_width() %>inches.png?fromgallery=true">in</a>
+ <a href="<%= homepath %>/show/ruler_<%= ruler.pixel_width %>px_<%= ruler.cm_width() %>centimeters.png?fromgallery=true">cm</a>/<a href="<%= homepath %>/show/ruler_<%= ruler.pixel_width %>px_<%= ruler.in_width() %>inches.png?fromgallery=true">in</a>
</td>
- <td><form method="GET" action="delete/<%= ruler.id %>" style="display:inline;">
+ <td><form method="GET" action="<%= homepath %>/delete/<%= ruler.id %>" style="display:inline;">
<input type="submit" value="delete" /></form></td>
</tr>
<% endfor %>
<%= errormsg %>
</div>
<% endif %>
-<form method="POST" action="/gallery">
+<form method="POST" action="<%= homepath %>/gallery">
<% include '_form_elements.tmpl' %>