不能删除帖子问题
This commit is contained in:
parent
374b183c0f
commit
2b5cdf161c
|
@ -1,3 +1,4 @@
|
|||
*.swp
|
||||
/.project
|
||||
/.idea
|
||||
/.bundle
|
||||
|
@ -11,4 +12,4 @@
|
|||
/Gemfile
|
||||
/Gemfile.lock
|
||||
/db/schema.rb
|
||||
/Gemfile.lock
|
||||
/Gemfile.lock
|
||||
|
|
|
@ -148,7 +148,8 @@ class MemosController < ApplicationController
|
|||
|
||||
def find_memo
|
||||
return unless find_forum
|
||||
@memo = @forum.memos.find(params[:id])
|
||||
#@memo = @forum.memos.find(params[:id])
|
||||
@memo = Memo.find(params[:id])
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
nil
|
||||
|
|
Loading…
Reference in New Issue