title: Grails - how to call a controller method from a form
body: <p>I'm completely new to grails, and I appreciate any help. 
  This code is in my gsp file:</p>
  
  <pre><code>&lt;g:form action="backfillMachineTags"&gt;
              &lt;fieldset class="buttons"&gt;
                  &lt;g:submitButton name="create" class="save"
                                  value="${message(code: 'default.button.create.label', default: 'Create')}"/&gt;
              &lt;/fieldset&gt;
          &lt;/g:form&gt;
  </code></pre>
  
  <p>And this code is in my RegressionPoolMachineController.groovy file:</p>
  
  <pre><code>def backfillMachineTags()
      {
          flash.message = "testing message"
          redirect(action: "list")
      }
  </code></pre>
  
  <p>But when I click the submit button on the form, the method is never entered and I get a 404 not found.</p>
  
  <p>message:/pool-manager/regressionPoolMachine/backfillMachineTags</p>
  
  <p>status:  The requested resource is not available.</p>
  
  <p>I also tried doing:</p>
  
  <pre><code>&lt;g:form url="[action:'backfillMachineTags',controller:'RegressionPoolMachineController']"&gt;
  </code></pre>
  
  <p>but get a similar 404 not found. </p>
  
  <p>Am I missing a step to connect my form and controller? </p>