Created
January 12, 2012 14:37
-
-
Save eileencodes/1600871 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="datetime"> | |
<% if @post.user.nil? %> | |
No author specified | |
<% else %> | |
<%= @post.user.username %> | |
<% end %> | |
</div> |
That is a lot shorter, thanks for the tip! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You also can do:
Bit shorter ;-)