I don't believe it's legal HTML to have a div there.
Fred
Why? Could you tell me what wrong with my code?
That's just the way it is, divs aren't allowed there (just as you
can't do <span><div></div></span> either). Try putting your html
through the w3c validator
That's just the way it is, divs aren't allowed there (just as you
can't do <span><div></div></span> either). Try putting your html
through the w3c validator
Fred
A render must be in an element. If I can't use div in this case, how can
I render it?
Quoting Zhao Yi <rails-mailing-list@andreas-s.net>:
Frederick Cheung wrote:
> That's just the way it is, divs aren't allowed there (just as you
> can't do <span><div></div></span> either). Try putting your html
> through the w3c validator
>
> Fred
A render must be in an element. If I can't use div in this case, how can
I render it?
Your element (the <div>...</div>) isn't in a valid place. You have it between
a row and the end of the table. Is it supposed to straddle the table
boundary? Either move it into the <td>...</td> or outside the table as
appropriate. Or put it in a table row of its own.