Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[FIX] Fixed an error where the `/article/:id` used un-available metho…

…ds on article.author
  • Loading branch information...
commit 39101103ecd42988d82dae0b493c0f61c3f1ef53 1 parent bc63455
@karmi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  episode-307/blog-after/app/views/articles/show.html.erb
View
2  episode-307/blog-after/app/views/articles/show.html.erb
@@ -1,6 +1,6 @@
<h1><%= @article.name %></h1>
-<p class="author"><em>by <%= @article.author.first_name %> <%= @article.author.last_name %></em></p>
+<p class="author"><em>by <%= @article.author.name %></em></p>
<%= simple_format @article.content %>
Please sign in to comment.
Something went wrong with that request. Please try again.