fix wiki page creation
This commit is contained in:
parent
9a0100e382
commit
9badaca2f3
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class PagesController < ApplicationController
|
|||
end
|
||||
|
||||
def create
|
||||
@page = current_user.pages.build(params[:page])
|
||||
@page = Page.new(params[:page].merge({:user => current_user}))
|
||||
|
||||
if params[:preview]
|
||||
render :action => 'new'
|
||||
|
|
Loading…
Reference in a new issue