Initial work on the editbar.

This commit is contained in:
Tom Preston-Werner
2010-07-13 22:08:23 -07:00
parent 0e888454ba
commit 9f4af3173c
10 changed files with 194 additions and 10 deletions
+2 -2
View File
@@ -62,12 +62,12 @@ module Precious
end
post '/create/:name' do
page = params[:name]
name = params[:name]
wiki = Gollum::Wiki.new($path)
format = params[:format].intern
wiki.write_page(page, format, params[:content], commit_message)
wiki.write_page(name, format, params[:content], commit_message)
redirect "/#{name}"
end