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(/_/, ' ')