Sam Newman
2005-May-23 08:17 UTC
Multiple render_partial or render_partial_collection calls
Hi all, I wanted to have a controller render multiple collections - effectively I was splitting a list into two, to use a different partial template for each half of the list to simplify the template code - this was being done in an Ajax handler. So in my controller I had something like the following: render_partial "Hello" render_partial "Hello Again" "Hello" gets printed, but not "Hello Again". I''m assuming this is a know limitation? I saw the same behaviour with redner_partial_collection -- sam http://www.magpiebrain.com/
Michael Koziarski
2005-May-23 09:18 UTC
Re: Multiple render_partial or render_partial_collection calls
On 5/23/05, Sam Newman <sam.newman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I wanted to have a controller render multiple collections - > effectively I was splitting a list into two, to use a different > partial template for each half of the list to simplify the template > code - this was being done in an Ajax handler. So in my controller I > had something like the following: > > render_partial "Hello" > render_partial "Hello Again" > > "Hello" gets printed, but not "Hello Again". I''m assuming this is a > know limitation? I saw the same behaviour with > redner_partial_collectionYes, this is a known bug which has now been fixed. multiple calls to render will now throw an error rather than silently failing.> -- > sam > http://www.magpiebrain.com/ > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz