Clean & Pretty flash[:notice] and flash[:error] in Rails
Tuesday, December 16th, 2008I’ve been using this little snippet quite often for our Rails applications, so I thought I’d share it. It uses minimal code to output the flash[:notice] and flash[:error] messages in colors correlating to their purpose and then fades them away.

Here’s the CSS used followed by the Erb code I use in my layout:




