fix wiki page creation

This commit is contained in:
wvengen 2013-11-25 16:33:12 +01:00
parent 9a0100e382
commit 9badaca2f3

View file

@ -51,7 +51,7 @@ class PagesController < ApplicationController
end end
def create def create
@page = current_user.pages.build(params[:page]) @page = Page.new(params[:page].merge({:user => current_user}))
if params[:preview] if params[:preview]
render :action => 'new' render :action => 'new'