项目消息问题

This commit is contained in:
ouyangxuhua 2015-08-24 11:27:36 +08:00
parent 657f5f9acf
commit b2ac4e8e1f
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class UsersController < ApplicationController
@user_course_messages = CourseMessage.where("course_message_type =? and user_id =?", "Comment", @user).order("created_at desc")
@user_course_messages_count = @user_course_messages.count
when 'forge_news_reply'
@user_forge_messages = ForgeMessage.where("course_message_type =? and user_id =?", "Comment", @user).order("created_at desc")
@user_forge_messages = ForgeMessage.where("forge_message_type =? and user_id =?", "Comment", @user).order("created_at desc")
@user_forge_messagess_count = @user_forge_messages.count
when 'poll'
@user_course_messages = CourseMessage.where("course_message_type =? and user_id =?", "Poll", @user).order("created_at desc")