Skip to content

Commit

Permalink
[#634 state:resolved] flash-messages fails inside ajax part
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Feb 21, 2010
1 parent 50b94b2 commit 767f106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/taglibs/rapid_pages.dryml
Expand Up @@ -243,7 +243,7 @@ The flash is output in a `<div class="flash notice">`, where `notice` is the `ty

<!-- Renders `<flash-message>` for every flash type given in the `names` attribute (comma separated), or for all flash messages that have been set if `names` is not given -->
<def tag="flash-messages" attrs="names"><%=
scope.flash_rendered = true
scope.flash_rendered = true if scope.respond_to? :flash_rendered
names = names.nil? ? flash.keys : comma_split(names)
names.map { |name| flash_message :type => name }.join
%></def>
Expand Down

0 comments on commit 767f106

Please sign in to comment.