I think the problem is that you're using capture_haml to turn the block into
a string. I think you just want to pass the block on to dismissible_message,
as dismissible_message(..., &block)

On Thu, Aug 20, 2009 at 10:21 AM, Ramon Tayag <[email protected]> wrote:

>
> I didn't bother explaining because I didn't think it was relevant.
> But... I may be wrong. I hope so! Dismissible message is:
> http://github.com/heavysixer/acts_as_dismissible/tree/master
>
> But if the cookie has dashes in it, it breaks. So I clean it up with the
> helper.
>
> I also tried making the "can_dismiss" part a html.erb partial and it
> rendered fine in production.
>
> Ramon Tayag
>
> On Fri, Aug 21, 2009 at 12:44 AM, Nathan Weizenbaum<[email protected]>
> wrote:
> > I'm confused. What does dismissible_message do? Why are you passing it a
> > block that just returns a string?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to