A friendly confirmation when a new wiki is set up

This commit is contained in:
Alexey Verkhovsky 2005-01-28 02:57:25 +00:00
parent 22e7104ea1
commit 16dcdb6e0e
2 changed files with 8 additions and 2 deletions

View file

@ -15,7 +15,12 @@ class AdminController < ApplicationController
elsif @params['web_name']
# form submitted -> create a wiki
@wiki.setup(@params['password'], @params['web_name'], @params['web_address'])
redirect_show('HomePage', @params['web_address'])
flash[:info] = <<-EOL
Your new wiki '#{@params['web_name']}' is created!<br/>
Please edit its home page and press Submit when finished.
EOL
redirect_to :web => @params['web_address'], :controller => 'wiki', :action => 'new',
:id => 'HomePage'
else
# no form submitted -> go to template
end