I have a method where I do some validation and it returns the error code, depending on the kind of error it is. So in the controller, when I do the validation and it returns the error code desired, I want to display the error message specific to that code. But all the messages are always “info like”, the blue kind of flash message. What if I want the red one, error-like flash message? I’ve been looking into documentation for a while and can’t figure it out.
Share
When I want to accomplish this I usually do something like:
Then in the GSP