[issue #64] Minor fixes in WikiController

This commit is contained in:
George Vinogradov 2012-01-19 16:07:08 +04:00
parent 022a013b79
commit 32b64d3462
1 changed files with 1 additions and 2 deletions

View File

@ -146,7 +146,7 @@ class WikiController < ApplicationController
puts @wiki.inspect
puts params['content']
puts params['format']
@name = 'Preview'
@name = params['page']#'Preview'
@page = @wiki.preview_page(@name, params['content'], params['format'])
puts @page.inspect
puts @page.version.inspect
@ -167,7 +167,6 @@ class WikiController < ApplicationController
def search
@query = params[:q]
@results = @wiki.search @query
@name = @query
end
def pages