Any time you feel the need to use logic in a few like this, it typically means that you need a helper method. It's not a huge deal by any means, but it's best to establish a practice of thinking that way. You'll end up with views that are much easier to comprehend:

```erb
<div id="post_photo">
  <h3 class="title" id="post_title">
    <%= @post.title %>
  </h3>
  <p class="username" id="post_username">Posted by <%=@post.name%></p>
  <hr />
  <%= picture_for_post(@post) %>
</div>
```