A friendly confirmation when a new wiki is set up
This commit is contained in:
parent
22e7104ea1
commit
16dcdb6e0e
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue