search for: reload_flash

Displaying 1 result from an estimated 1 matches for "reload_flash".

Did you mean: reload_flag
2009 Oct 07
2
Rails, flash, function and parameter
Hi, I try do update the flash on my page with ajax. I have this on my layout : <div id="flash_messages"> <%= render :partial => ''layouts/flash'' %> </div> I have this on my ApplicationHelper : def reload_flash page.replace "flash_messages", :partial => ''layouts/flash'' end and I try do that on my controller : render :update do |page| flash[:notice] = "Entering ''beast mode''..." page.reload_flash end but I have an error, to fix it i need to...