Skip to content

Commit

Permalink
Fix problem with blog update.
Browse files Browse the repository at this point in the history
  • Loading branch information
solidstatejake committed Jun 22, 2019
1 parent bd4c0b1 commit 6b93472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/blogs/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<% if logged_in? :site_admin %>

<p class='blog-post-meta'>
<%= link_to "Post status: #{blog.status.titleize}", toggle_status_blog_path(blog) %> /
<%= link_to 'Edit', edit_blog_path(blog) %> /
<%= link_to 'Delete Post', blog, method: :delete, data: { confirm: 'Are you sure?' } %>
<%= link_to "Post status: #{@blog.status.titleize}", toggle_status_blog_path(@blog) %> /
<%= link_to 'Edit', edit_blog_path(@blog) %> /
<%= link_to 'Delete Post', @blog, method: :delete, data: { confirm: 'Are you sure?' } %>
</p>

<% end %>
Expand Down

0 comments on commit 6b93472

Please sign in to comment.