<% title "Albums" %> <% heading "Albums" %> <%= stylesheet( 'dust_album','uploadify') %>
<%= render :partial => 'search' %> <%=link_to('new allbum', new_album_path, :class => 'newfile tip', :title => "New Album")%>
<%= will_paginate @albums %> <% @albums.each do |album| %> '> <% end %>
Album Title Created At
<% if album.photos.empty? %> <%= link_to "add photos to #{album.title}", album %> <% else %> <% @photo = album.photos.find(:first) %> <%= link_to image_tag(@photo.file.url(:thumb)), album %> <% end -%> <%= album.title%> <%= album.created_at.to_s(:m_d_y) %>
<%=link_to('', edit_album_path(album), :class => 'edit')%> <%=link_to "", album, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy' %>
<%= will_paginate @albums %>