trying out resource routing. Works decently. Added lots of notes.
[zzz-floof.git] / floof / templates / index.mako
index af95f7a..8ee86e6 100644 (file)
@@ -3,7 +3,7 @@
 
 <ul class="artwork-grid">
     % for artwork in c.artwork:
-    <li><a href="${h.url_for(controller="art", action="show", id=artwork.id)}">
+    <li><a href="${h.url("art", id=artwork.id)}">
         <img width="180" src="${artwork.get_path()}">
     </a></li>
     % endfor