title: Grails submitToRemote always calls index method
body: <p>I'm new to grails and not quiet understanding why my form keeps calling the index method of my controller even though I assign the action to call a test method.</p>
  
  <p>Here is the gsp:</p>
  
  <pre><code>&lt;g:form action="test"&gt;
          &lt;g:submitToRemote update="updateMe" value="Click Me!" /&gt;
      &lt;/g:form&gt;
      &lt;div id="updateMe"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Here is how it is rendered: </p>
  
  <pre><code>&lt;form action="/CEFConnect/CEFTicker/test" method="post"&gt;
    &lt;input onclick="jQuery.ajax({type:'POST',data:jQuery(this).parents('form:first').serialize(),
                   url:'/CEFConnect/CEFTicker/index',
                   success:function(data,textStatus){jQuery('#updateMe').html(data);},
                   error:function(XMLHttpRequest,textStatus,errorThrown){}});
                   return false" 
           type="button" value="Click Me!"&gt;
  &lt;/form&gt;&lt;div id="updateMe"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The ajax is calling <code>'/CEFConnect/CEFTicker/index'</code> and not <code>'/CEFConnect/CEFTicker/test'</code></p>
  
  <p>Here is the controller:</p>
  
  <pre><code>class CEFTickerController {
  
  def index() {
      render "&lt;p&gt;index called.&lt;/p&gt;"
  }
  
  def list() {
  
  } 
  
  def test() {
      render "&lt;p&gt;test called.&lt;/p&gt;"
  }}
  </code></pre>
  
  <p>The page I'm calling this from is '/CEFConnect/CEFTicker/list'.  So, I'm not calling the action from the current action.</p>