Displaying 1 result from an estimated 1 matches for "whateverdiv".
Did you mean:
whateverdir
2009 Mar 05
3
How to render :partials *before* the :action has finished ?
...artials)
- "IN THE BACKGROUND": sending out 2 emails (which takes too much time
to wait for)
The thing is: it''s impossible to do it like below (since "render" always
seems to be executed at the end of an :action):
render :update do |page|
page.replace_html ''whateverDiv'', :partial => ''whateverPartial''
page.replace_html ''whateverDiv2'', :partial => ''whateverPartial2''
end
What''s the easiest/best solution in Rails to solve this problem?
Thanks a lot for your help!
Tom
--
Posted via http...