On Wed, Oct 29, 2008 at 10:35 AM, LAN-SUN-LUK Benjamin
<Benjamin.LAN-SUN-LUK(a)supinfo.com> wrote:
NAK – At the edit page of a task. When I click on "update",
it create a new
one.
I think the form in the edit page must redirect to the controller task with
PUT method, not POST.
Okay, I think I got it this time. I did a create, edit and delete and
saw no problems or duplication. The code now checks in _edit.html.erb
to see if it's a new record and, if so, sets the HTML method to POST.
Otherwise, it assumes PUT.
--
Darryl L. Pierce <mcpierce(a)gmail.com>
Visit the Infobahn Offramp: <
http://mcpierce.multiply.com>
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant