Displaying 1 result from an estimated 1 matches for "update_flash_messag".
Did you mean:
update_flash_messages
2006 Mar 08
2
RJS - page object in helpers?
Hello,
I am using RJS and Edge Rails and I was wondering if the page object should
be available in helpers also.
For example if I have a helper function
def update_flash_messages
page.replace_html ''flash_messages'', (show_flash_messages :textilize => true)
page.visual_effect ''flash_messages'', :appear
end
and then in my RJS files I call
update_flash_messages
But right now the above code _doesn''t work_, rather I h...