diff --git a/app/views/albums/edit.html.haml b/app/views/albums/edit.html.haml index 18cb8b644..43a80aeda 100644 --- a/app/views/albums/edit.html.haml +++ b/app/views/albums/edit.html.haml @@ -9,11 +9,11 @@ - form_for @album do |a| = a.error_messages %p + %b album name: = a.text_field :name - %ul - for photo in @album.photos - %li.photo_edit_block= image_tag photo.url(:thumb_large) + .photo_edit_block= image_tag photo.url(:thumb_medium) #submit_block = link_to "Cancel", root_path diff --git a/app/views/posts/_post.html.haml b/app/views/posts/_post.html.haml index 9474a806f..6594bc07c 100644 --- a/app/views/posts/_post.html.haml +++ b/app/views/posts/_post.html.haml @@ -1,4 +1,4 @@ %ul %h3= link_to post.class, object_path(post) - for field in object_fields(post) - %li= "#{field}: #{post.attributes[field]}" \ No newline at end of file + %li= "#{field}: #{post.attributes[field]}"