The addPost action in PostController sets the flash message to either an informational one or an error. These are both displayed the same way, but that's not ideal. We could leave it as it is and add something in the text about why we're displaying the same and how to do it differently, or we should update our samples to display error messages and information messages differently.
The
addPost
action inPostController
sets the flash message to either an informational one or an error. These are both displayed the same way, but that's not ideal. We could leave it as it is and add something in the text about why we're displaying the same and how to do it differently, or we should update our samples to display error messages and information messages differently.