To get something similar to work I embedded the view on the form rather than using a $$ViewTemplate. When the form is opened the fields are hidden and then when the add new entry is used I show the fields without having to go back to the sever to get them.
I then do edit and delete in the same way as your Rails with AJAX demo, except that instead of going back to the server to get the field values, I just use the innerHTML of the table cells of the row that is being edited, and then insert them into the fields.
To get something similar to work I embedded the view on the form rather than using a $$ViewTemplate. When the form is opened the fields are hidden and then when the add new entry is used I show the fields without having to go back to the sever to get them.
I then do edit and delete in the same way as your Rails with AJAX demo, except that instead of going back to the server to get the field values, I just use the innerHTML of the table cells of the row that is being edited, and then insert them into the fields.
Hope that makes sense!