Forum: Ruby on Rails A question about render

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Zhao Y. (Guest)
on 2009-01-06 14:43
I faced a problem about render. This is my view page:

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

In _test1.html.erb:

    <td><%=select_tag 'database_select',
<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?
Zhao Y. (Guest)
on 2009-01-07 02:56
Can anyone help me on this?
This topic is locked and can not be replied to.