Forum: Ruby on Rails A question about render

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2009-01-06 13:43
I faced a problem about render. This is my view page:

<tr id="test1">
  <%= render :partial=>'test1'%>
</tr>

In _test1.html.erb:

    <td><%=select_tag 'database_select',
options_for_select(@databases)%></td>
</tr>
<tr id='test2'>
    <td><%=text_field_tag 'table', @table_name,:size=>30%></td>

You can see that in the partial page, I use </tr> and <tr> element to
make a new row in the current table. When rendering this page, the
second row which id is 'test2' never update. How can I render the second
row in this case?
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2009-01-07 01:56
Can anyone help me on this?
This topic is locked and can not be replied to.