Remove a row from a table (Using AJAX)

Matthew Planchant wrote:

I have a table with a number of rows. The right most cell contains a link 'Delete' when this is clicked I'd like that row to be removed from the table.

How can I achieve this?

Assign an id to every row and remove it with Protoype's Element.remove

<% row_id = your_custom_row_id_generating_helper %> <tr id="<%= row_id>">   <td>...</td>   <td><%= link_to_function "Delete", "Element.remove(#{row_id})"%></td> </tr>

There's no need to for AJAX if no updated information is needed from the server.