Mixing a call to .rhtml AND .rjs

I'm not sure I have enough information about what you are trying to do, but do you mean that you want to put flash data into a div if certain criteria is true at the time the page is rendered? If so, you could just do this in your .rhtml file: ... <% if condition -%> <div><%= flash[:error] -%></div> <% end -%> ...

If you are wanting to do something after the page is rendered based on user interaction, that would need to be done w/ javascript.


Jean Nibee wrote: