Try replacing your <form>
with this
<g:formRemote name="myForm" url="[controller: 'book', action: 'update']">
Book name: <input type="text" name="name"><br>
Book type: <input type="text" name="type"><br><br>
<input type="submit" value="Ok">
</g:formRemote>