In my Rails 3 app, I have a number of pages with forms where a user can create records and then edit them. To create a record, the user clicks on the "add a record" button, which brings up a modal dialog with the "new record" form in it. Once the user fills out the form and presses Save, the modal dialog disappears and the table partial updates, showing the new record. To edit a record, the user clicks on an edit link next to any existing record, which brings up a modal dialog with the a similar form to the "new record" form, but has titles of "Editing record" and "Save Edits", etc.In my Rails 3 app, I have a number of pages wit