Hi, I seem to be having an issue with rendering a partial within a
table. Basically, I had a partial with all my <tr> and <td> tags that
was to be rendered inside the <table> tags on my page. When it rendered,
all the tags were removed for some reason and just the text remained, so
it went outside my table. However, when I include the <table> tags
inside the partial, it renders everything just fine. I believe the
problem is with my acts_as_authenticated plugin, as I remember getting
an authentication error at one point. Does anyone know if that plugin
has a problem with inserting a partial into a table?
The other potential reason is I'm using scriptaculous and ajax for all
of these. I tried giving all my <tr>'s and even <td>'s unique IDs but
that didnt work either. If anyone has a suggestion or has run into this
problem before I'd love to know. I just want to be able to update within
a table with ajax. Thanks!
Hi, I seem to be having an issue with rendering a partial within a
table. Basically, I had a partial with all my <tr> and <td> tags that
was to be rendered inside the <table> tags on my page. When it
rendered,
all the tags were removed for some reason and just the text
remained, so
it went outside my table. However, when I include the <table> tags
inside the partial, it renders everything just fine. I believe the
problem is with my acts_as_authenticated plugin, as I remember getting
an authentication error at one point. Does anyone know if that plugin
has a problem with inserting a partial into a table?
I can't think why the two would conflict. Show us some code :-), and
eyeball the generated html closely.
You're allowed multiple tbodys though, so you can do
<table>
<tbody>
static rows here
</tbody>
<tbody id="hardware_list"> </tbody>
</table>
and insert your rows into that second tbody.