From a1277acf1d8840a32267e9b263af8e3ba9640f36 Mon Sep 17 00:00:00 2001 From: Coleman Date: Fri, 27 Jun 2008 01:24:12 -0500 Subject: [PATCH] wrong ar method --- app/controllers/pages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/pages.rb b/app/controllers/pages.rb index c5161a6..b79a976 100644 --- a/app/controllers/pages.rb +++ b/app/controllers/pages.rb @@ -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