Created
October 31, 2010 01:00
-
-
Save ordinaryzelig/655953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/helpers/application_helper.rb | |
def update_flash | |
[:notice, :error].each do |type| | |
message = flash[type] | |
concat "$('#flash_#{type}').html('message')" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment