wrong ar method
parent
1c62698fa1
commit
a1277acf1d
|
@ -61,7 +61,7 @@ class Pages < Application
|
|||
def delete
|
||||
@page = Page.find_by_name(params[:id].gsub(/_/, ' '))
|
||||
raise NotFound unless @page
|
||||
if @page.destroy!
|
||||
if @page.destroy
|
||||
flash[:notice] = "The page was successfully destroyed."
|
||||
redirect url(:page)
|
||||
else
|
||||
|
|
Reference in New Issue