You're not actually printing out the content in your views.
<%
will evaluate the content but not print it; <%=
will evaluate it and print it.
So you need to modify these two lines:
<% gravatar_for user, size: 52 %>
<% link_to user.name, user %>
to add the missing =
.