are you trying to this??? # your main file <tr> <%= :render :partial => 'A_B_C_D_partial' %> </tr>
# A_B_C_D_partial contains <%= :render :partial => 'A_B_partial' %> </tr> <tr> <%= :render :partial => 'C_D_partial' %> # A_B_partial contains and outputs <td>Text A<td> <td>Text B<td> # C_D_partial contains and outputs <td>Text C<td> <td>Text D<td> # 'A_B_C_D_partial' outputs: <td>Text A<td> <td>Text B<td> </tr> <tr> <td>Text C<td> <td>Text D<td> # your final combined output <tr> <td>Text A<td> <td>Text B<td> </tr> <tr> <td>Text C<td> <td>Text D<td> </tr> On Jan 4, 7:52 am, Zhao Yi <[email protected]> wrote: > pepe wrote: > > Another sample based on the original listed above. You cold leave in > > your page: > > <tr> > > <%= :render :partial => 'your_A_and_B_partial' %> > > </tr> > > <tr> > > <%= :render :partial => 'your_C_and_D_partial' %> > > </tr> > > > If 'your_A_and_B_partial' delivers: > > <td>Text A<td> > > <td>Text B<td> > > > And 'your_C_and_D_partial' delivers: > > <td>Text C<td> > > <td>Text D<td> > > > You would get the expected results. > > Pepe > > Let's take a look at your example above. How can I render both > 'your_A_and_B_partial' and 'your_C_and_D_partial'? As you said, I can > render 'your_C_and_D_partial' in the partial 'your_A_and_B_partial'. But > how can I do this? > > thanks. > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

