From a48c31fcc4b0c2533f977c4d0d7a4cb7cb8bcd58 Mon Sep 17 00:00:00 2001 From: Coleman Date: Wed, 23 Jul 2008 04:52:42 -0500 Subject: [PATCH] nice default for blogging --- 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 3bd76b8..0437aa7 100644 --- a/app/controllers/pages.rb +++ b/app/controllers/pages.rb @@ -20,7 +20,7 @@ class Pages < Application def new @page_title = 'Make a new page' only_provides :html - @page = Page.new + @page = Page.new :published => true if params[:new_name] flash.now[:error] = 'That page does not exist, but you can create it.' @page.name = params[:new_name].gsub(/_/, ' ')