Forum: Ruby on Rails cannot access flash from rjs helper

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4b87f676cb6c4d648d71000681823693?d=identicon&s=25 Jean-sébastien Jney (jney)
on 2007-08-02 22:44
(Received via mailing list)
all is in the title :). I've got an rjs file calling
This method is defined in Application helper in which i do this :
if flash.size > 0
  flash.each do |key, msg|
    page.insert_html(:bottom, :alert, content_tag(:div, msg, :class =>

But the flash content is lost.
When i put the code directly in the rjs file it works.

Someone can help?

This topic is locked and can not be replied to.