<%= flash[:success] %>

<%= @article.title %> <%= @article.author + ', ' + @article.created_at.to_formatted_s(:short)%>

<%= simple_format @article.body %>

<%= pluralize(@article.comments.count, "Comment")%>

<% @article.comments.each do |comment|%>

<%=comment.comment%>

<% end %>

Votes

<% @article.votes.each do | vote | %> <% end %>
IdUp/DownIPAt
<%= vote.id %><%= vote.up == true ? "Up" :"Down"%><%= vote.from %><%= time_ago_in_words vote.created_at%> ago
<%= link_to 'Edit Article', edit_article_path(@article) %> <%= button_to 'Delete Article', "#destroy" %>