diff --git a/app/controllers/blog_comments_controller.rb b/app/controllers/blog_comments_controller.rb index cd01f31c5..4aaa64566 100644 --- a/app/controllers/blog_comments_controller.rb +++ b/app/controllers/blog_comments_controller.rb @@ -185,7 +185,7 @@ class BlogCommentsController < ApplicationController if params[:course_id] #如果呆了course_id过来了,那么这是要跳到课程大纲去的 redirect_to syllabus_course_path(:id=>params[:course_id]) else - redirect_to user_blog_blog_comment_path(:user_id => @article.author_id, :blog_id => @article.blog_id, :id => @article) + redirect_to user_blog_blog_comment_path( @article.author, :blog_id => @article.blog_id, :id => @article) end } diff --git a/app/views/users/reply_detail.js.erb b/app/views/users/reply_detail.js.erb index fe51a4b29..91828ef0f 100644 --- a/app/views/users/reply_detail.js.erb +++ b/app/views/users/reply_detail.js.erb @@ -18,7 +18,7 @@ <% if @user_activity_id.to_i != @root.id %> $("#activity_post_reply_<%= @user_activity_id%>").html("<%= escape_javascript(render :partial => 'users/user_blog_post_reply', :locals => {:activity => @root,:user_activity_id =>@user_activity_id}) %>"); <% else %> - window.location.href = "<%=user_blog_blog_comment_path(:user_id => @root.author_id,:blog_id=>@root.blog_id,:id=>@root.id) %>"; + window.location.href = "<%=user_blog_blog_comment_path(:user_id => @root.author,:blog_id => @root.blog_id,:id => @root.id) %>"; <% end %> <% elsif @type == 'News' || params[:type] == 'Comment' %> <% if @user_activity_id.to_i != @root.id %>