gdagley / display_flash_helper
display_flash_helper
PublicTrying to make displaying flash messages easier and prettier
13 filesupdated Jun 18, 2026
files10Download
./libJun 16, 2026./publicJun 16, 2026./tasksJun 16, 2026./testJun 16, 2026init.rbJun 16, 2026install.rbJun 16, 2026MIT-LICENSEJun 16, 2026RakefileJun 16, 2026READMEJun 18, 2026uninstall.rbJun 16, 2026README
DisplayFlashHelper
Just a little helper to make it easier to display notice, warning, and error messages. It will only show flash[:success], flash[:notice], flash[:warning], or flash[:error] messages.
There are some default styles and icons that can be used.
rake display_helper:setup
Example
In your controller:
def create do_somthing flash[:notice] = 'Something has been done.' end
In your view (layout or template):
<%= display_flash %>
And it will create:
<div id="flash"> <div class="notice">Something has been done.</div> </div>Silk Icons from http://famfamfam.com/lab/icons/silk/, released under the Creative Commons Attribution 2.5 License Copyright (c) 2008 Geoffrey Dagley, released under the MIT license