The easiest way -
<g:form action="register" controller="registration" name="registrationForm" />
The name attribute will be used to render the id attribute
You can also use the URL parameter and pass the map for your action and controller.
<g:form url="[action:'register', controller:'registration']" id="registrationForm" />
Gregg source share