Redirect inside of controller hook
Added by Tim Pfeifer almost 8 years ago
I'm currently developing a plugin which calls a website after a ticket was created/updated. So I hooked the issue controller and overwrite the methods controller_issues_edit_after_save and controller_issues_new_after_save. Everything is working fine except error handling.
Now to my problem: Is there any way to display the errors if something went wrong?
I didn't found a solution yet. I tried to redirect, but the method is missing. Probably because my hook inherits from Redmine::Hook:ViewListener. Including ApplicationController doesn't help either.
Did anyone encountered this problem too and maybe found a solution he wants to share?
Thanks in advance.