elsif写错了

This commit is contained in:
lizanle 2015-10-27 09:46:25 +08:00
parent 4c4f9ce10f
commit 0cad264620
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class AttachmentsController < ApplicationController
format.js
elsif @attachment.container.is_a?(Message)
format.html { redirect_to_referer_or new_board_message_path(@attachment.container) }
elseif @attachment.container.is_a?(BlogComment)
elsif @attachment.container.is_a?(BlogComment)
format.html { redirect_to_referer_or user_blog_blog_comment_path(:user_id=>@attachment.container.author.id,:blog_id=>@attachment.container.blog_id,:id=>@attachment.container.id)}
elsif @course.nil?
format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum, @attachment.container) }