GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

Display informational and error messages differently #86

Open pledbrook opened 10 years ago

pledbrook commented 10 years ago

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.