Anytime I clicked on the logout controller on the default scaffolding page of of my grails app, I would get a 405 error. Turns out a POST request is required by default by the Spring Security Plugin (using version 2.0-RC4). If you use ${createLink(controller:’logout’)} it creates a link that generates a GET Request. To create POST request I did the following for a logout button in my main.gsp file. It works and does not generate a 405 error
using Grails 2.4.2