Andrew Cowan
2006-May-01 20:18 UTC
[Rails] Is there a way to do unbuffered render :update ?
Greetings all, I have an action which does some stuff and then does a render :update to replace a container with a partial, the delay due to processing is more than I''d like for expecting a user to wait without hitting the button again and again. Is there a way to force the render''s display when the satement is executed rather than at the end of the action? Thanks, Andy -- Posted via http://www.ruby-forum.com/.
Charlie Bowman
2006-May-01 20:21 UTC
[Rails] Is there a way to do unbuffered render :update ?
I might be wrong ( I can''t check right now ), but I think you can just move the render to the top of your action. Even after a render, the rest of the action will continue to run. On Mon, 2006-05-01 at 22:18 +0200, Andrew Cowan wrote:> Greetings all, > > I have an action which does some stuff and then does a render :update to > replace a container with a partial, the delay due to processing is more > than I''d like for expecting a user to wait without hitting the button > again and again. Is there a way to force the render''s display when the > satement is executed rather than at the end of the action? > > Thanks, > Andy >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060501/fe43ea46/attachment.html