- <%= link_to activity.author.show_name, user_path(activity.author_id), :class => "newsBlue mr15" %>
+ <%= link_to activity.author.show_name, user_path(activity.author), :class => "newsBlue mr15" %>
TO
<%=link_to activity.course.syllabus.title, syllabus_path(activity.course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
•
diff --git a/app/views/users/_course_poll.html.erb b/app/views/users/_course_poll.html.erb
index ca8b49cd3..94b22488c 100644
--- a/app/views/users/_course_poll.html.erb
+++ b/app/views/users/_course_poll.html.erb
@@ -5,15 +5,15 @@
- <%= link_to image_tag(url_to_avatar(activity.user), :width => "50", :height => "50"), user_path(activity.user_id), :alt => "用户头像" %>
+ <%= link_to image_tag(url_to_avatar(activity.user), :width => "50", :height => "50"), user_path(activity.user), :alt => "用户头像" %>
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.user} %>
<% if activity.try(:user).try(:realname) == ' ' %>
- <%= link_to activity.try(:user), user_path(activity.user_id), :class => "newsBlue mr15" %>
+ <%= link_to activity.try(:user), user_path(activity.user), :class => "newsBlue mr15" %>
<% else %>
- <%= link_to activity.try(:user).try(:realname), user_path(activity.user_id), :class => "newsBlue mr15" %>
+ <%= link_to activity.try(:user).try(:realname), user_path(activity.user), :class => "newsBlue mr15" %>
<% end %>
TO
<% course = Course.find(activity.polls_group_id) %>