Permalink
Browse files

Reworking to match with Decorators tutorial

  • Loading branch information...
1 parent 8915310 commit 3a909ddacae1bb93db67c94a5fed3d603cb2dc7f @jcasimir jcasimir committed Jan 10, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 app/views/articles/show.html.erb
@@ -1,17 +1,16 @@
<h1><%= @article.title %></h1>
+<h4>Published <%= @article.created_at %>
+<p class='tag_list'><em>Tagged:</em> <%= @article.tag_list %></p>
+
+<p><%= @article.body %></p>
-<p class='flash'><%= flash[:notice] %></p>
<div class='article_actions'>
<%= edit_icon(@article, " Edit") %>
<%= delete_icon(@article, " Delete") %>
<%= link_to "Back to All Articles", articles_path %>
</div>
-<p><%= @article.body %></p>
-
-<p class='tag_list'><em>Tagged:</em> <%= @article.tag_list %></p>
-
<h3><%= pluralize @article.comments.count, "Comment" %></h3>
<% @article.comments.each do |comment| %>

0 comments on commit 3a909dd

Please sign in to comment.