Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1><%= @author.full_name -%></h1>
- <h2>Posts</h2>
- <% for post in @author.posts -%>
- <h3><%= post.title -%></h3>
- <p><%= post.text -%></p>
- <h4>Tags</h4>
- <p><%= post.tags.map(&:name).join(", ") %></p>
- <h4>Comments</h4>
- <div class="comments">
- <% for comment in post.comments -%>
- <h5>by <%= mail_to comment.email, comment.author, :encode => "javascript" -%></h5>
- <p><%= comment.text -%></p>
- <% end -%>
- </div>
- <% end -%>
- <%= link_to 'Edit', edit_author_path(@author) %> |
- <%= link_to 'Back', authors_path %>
Add Comment
Please, Sign In to add comment