wrong ar method

This commit is contained in:
Coleman 2008-06-27 01:24:12 -05:00
commit a1277acf1d

View file

@ -61,7 +61,7 @@ class Pages < Application
def delete def delete
@page = Page.find_by_name(params[:id].gsub(/_/, ' ')) @page = Page.find_by_name(params[:id].gsub(/_/, ' '))
raise NotFound unless @page raise NotFound unless @page
if @page.destroy! if @page.destroy
flash[:notice] = "The page was successfully destroyed." flash[:notice] = "The page was successfully destroyed."
redirect url(:page) redirect url(:page)
else else