app/views/photo_albums/show.html.erb in tb_photos-1.0 vs app/views/photo_albums/show.html.erb in tb_photos-1.0.1

- old
+ new

@@ -7,11 +7,11 @@ <% end %> <h2>Photo Album: <%= @photo_album.title %></h2> <% if @photo_gallery %> - <% if @photo_gallery.albums.count == 1 %> + <% if @photo_gallery.albums.length == 1 %> <p><%= link_to 'Back to Galleries', photo_galleries_path %> <% else %> <p><%= link_to 'Back to Gallery', photo_gallery_photo_albums_path(@photo_gallery.url_name) %> <% end %> <% else %> @@ -22,6 +22,6 @@ <% @photo_album.photos.each do |photo| %> <div class="spud_photo_album_thumbnail"> <%= link_to image_tag(photo.photo.url(:small), :alt => photo.caption, :title => photo.title), photo.photo.url(:large) %> </div> <% end %> -</div> \ No newline at end of file +</div>