Displaying 2 results from an estimated 2 matches for "show_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 have to pass the page
object as shown below:
def update_flash_messages(page)...
2006 Feb 04
2
rendering subtemplates
hi,
i''ve got main site navigation in the application.rhtml file.
the links in this template correspond to the ''index''
page of various controllers. The controllers themselves
each have navigation of their own, which i would like to
appear in every view for a particular controller in *addition*
to the main site navigation.
The problem I am encountering is that