I have created a new action called "updateWithHistory" on a controller "X" similar to update. When I use this code from a scaffolded edit.gsp page:
<span class="button"><g:actionSubmit class="save" action="updateWithHistory" value="${message(code: 'default.button.updateWithHistory.label', default: 'Persist')}" /></span>
I get a 404 error:
The requested resource (/GPECAN/WEB-INF/grails-app/views/X/updateWithHistory.jsp) is not available.
I don't know why Grails is looking for the view and not for the action. I don't need a view for that action because it redirects to existing actions (list, edit, etc.).
This does not happen with the default scaffolded actions like "update". Any ideas?
(Of course, if I create a view called "updateWithHistory.gsp", the view is shown, but the action is never executed...I'm desperate)