link to the user details instead.
<b><%= diary_entry.title %></b><br />
<%= simple_format(diary_entry.body) %>
-Posted by user <b><%= link_to diary_entry.user.display_name,{:controller => 'diary_entry', :action => 'list', :display_name => diary_entry.user.display_name} %></b> at <%= diary_entry.created_at %><br />
+Posted by user <b><%= link_to diary_entry.user.display_name, :controller => 'user', :action => 'view', :display_name => diary_entry.user.display_name %></b> at <%= diary_entry.created_at %><br />
<br />
<hr />
<% if @this_user %>
- <h2><%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @this_user.display_name %>'s diary</h2>
+ <h2><%= @this_user.display_name %>'s diary</h2>
<% if @user and @this_user.id == @user.id %>
<%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>