nice default for blogging

master
Coleman 2008-07-23 04:52:42 -05:00
parent c7c4152c21
commit a48c31fcc4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Pages < Application
def new def new
@page_title = 'Make a new page' @page_title = 'Make a new page'
only_provides :html only_provides :html
@page = Page.new @page = Page.new :published => true
if params[:new_name] if params[:new_name]
flash.now[:error] = 'That page does not exist, but you can create it.' flash.now[:error] = 'That page does not exist, but you can create it.'
@page.name = params[:new_name].gsub(/_/, ' ') @page.name = params[:new_name].gsub(/_/, ' ')