fixes #1362
This commit is contained in:
@@ -4,6 +4,7 @@ class WikiPagesController < ApplicationController
|
|||||||
before_filter :janitor_only, :only => [:destroy]
|
before_filter :janitor_only, :only => [:destroy]
|
||||||
before_filter :normalize_search_params, :only => [:index]
|
before_filter :normalize_search_params, :only => [:index]
|
||||||
rescue_from ActiveRecord::StatementInvalid, :with => :rescue_exception
|
rescue_from ActiveRecord::StatementInvalid, :with => :rescue_exception
|
||||||
|
rescue_from ActiveRecord::RecordNotFound, :with => :rescue_exception
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@wiki_page = WikiPage.new(params[:wiki_page])
|
@wiki_page = WikiPage.new(params[:wiki_page])
|
||||||
|
|||||||
Reference in New Issue
Block a user