app/views/admin/create_web.rhtml in instiki-0.10.1 vs app/views/admin/create_web.rhtml in instiki-0.10.2

- old
+ new

@@ -3,12 +3,13 @@ <p> Each web serves as an isolated name space for wiki pages, so different subjects or projects can write about different <i>MuppetShows</i>. </p> -<form action="../create_web" id="setup" method="post" onSubmit="cleanAddress(); - return validateSetup()"> +<%= form_tag({ :controller => 'admin', :action => 'create_web'}, + {'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'}) +%> <ol class="setup"> <li> <h2 style="margin-bottom: 3px">Name and address for your new web</h2> <div class="help"> @@ -33,10 +34,10 @@ and <input type="submit" value="Create Web" /> </small> </p> -</form> +<%= end_form_tag %> <script> function proposeAddress() { document.getElementById('web_address').value = document.getElementById('web_name').value.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();