Standarize on name instead of page as URL param.

This commit is contained in:
Tom Preston-Werner
2010-07-13 13:27:45 -07:00
parent daa633379d
commit 77791940a5
+3 -3
View File
@@ -59,14 +59,14 @@ module Precious
redirect "/#{name}"
end
post '/create/:page' do
page = params[:page]
post '/create/:name' do
page = params[:name]
wiki = Gollum::Wiki.new($path)
format = params[:format].intern
wiki.write_page(page, format, params[:content], commit_message)
redirect "/#{page}"
redirect "/#{name}"
end
get %r{/(.+?)/([0-9a-f]{40})} do