- title "All <%=parent_plural_class_name%>" - heading "All <%=parent_plural_class_name%>" - content_for :head do = stylesheet_link_tag 'dust_<%=parent_singular_name%>_app' = will_paginate @<%=parent_plural_name%> %ul{:class => "columns"} - @<%=parent_plural_name%>.each do |<%=parent_singular_name%>| - unless <%=parent_singular_name%>.<%=child_plural_name%>.empty? %li - @<%=child_singular_name%> = <%=parent_singular_name%>.<%=child_plural_name%>.find(:first) - link_to view_<%=parent_singular_name%>_path(<%=parent_singular_name%>.filename), :style => 'float:left; ' do = image_tag @<%=child_singular_name%>.file.url(:thumb), :alt => <%=parent_singular_name%>.heading .info %p = link_to <%=parent_singular_name%>.title, view_<%=parent_singular_name%>_path(<%=parent_singular_name%>.filename) %br/ = truncate(<%=parent_singular_name%>.desc, :length => 100) = link_to "Read More", view_<%=parent_singular_name%>_path(<%=parent_singular_name%>.filename) unless <%=parent_singular_name%>.desc.blank? .clear = will_paginate @<%=parent_plural_name%>