- <%= link_to comment.creator_user.show_name, user_path(comment.creator_user.id), :class => "content-username" %>
+ <%= link_to comment.creator_user.show_name, user_path(comment.creator_user), :class => "content-username" %>
<% if comment.class == Journal %>
diff --git a/app/views/users/_message_contents.html.erb b/app/views/users/_message_contents.html.erb
index 7aecc354b..cc333fb71 100644
--- a/app/views/users/_message_contents.html.erb
+++ b/app/views/users/_message_contents.html.erb
@@ -1,5 +1,5 @@
- <%= link_to comment.creator_user.show_name, user_url_in_org(comment.creator_user.id), :class => "newsBlue mr10 f14" %>
+ <%= link_to comment.creator_user.show_name, user_url_in_org(comment.creator_user), :class => "newsBlue mr10 f14" %>
<%= time_from_now(comment.respond_to?(:created_on) ? comment.created_on : comment.created_at) %>
<% if !comment.parent.nil? && !comment.parent.parent.nil? %>
diff --git a/app/views/users/_message_replies.html.erb b/app/views/users/_message_replies.html.erb
index ce1e70887..9dc14c3aa 100644
--- a/app/views/users/_message_replies.html.erb
+++ b/app/views/users/_message_replies.html.erb
@@ -8,7 +8,7 @@
- <%= link_to image_tag(url_to_avatar(comment.creator_user), :width => 33, :height => 33, :alt => "用户头像"), user_url_in_org(comment.creator_user.id) %>
+ <%= link_to image_tag(url_to_avatar(comment.creator_user), :width => 33, :height => 33, :alt => "用户头像"), user_url_in_org(comment.creator_user) %>
<%= render :partial => 'users/message_contents', :locals => {:comment => comment}%>
diff --git a/app/views/users/_project_issue_reply.html.erb b/app/views/users/_project_issue_reply.html.erb
index fb2fc214e..6b16b3411 100644
--- a/app/views/users/_project_issue_reply.html.erb
+++ b/app/views/users/_project_issue_reply.html.erb
@@ -10,7 +10,7 @@
<% end %>
-
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(activity.author_id), :alt => "用户头像" %>
+
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(activity.author), :alt => "用户头像" %>
<% if User.current.logged? %>