Edit a user does not work
marcelfalliere opened this issue · comments
Hi lucassus,
It simply does not work. I guess you can reproduce with 2 users in you database. Reload the page, change attributes values and save.
The error in webkit console :
PUT http://localhost:3000/users.json?_dc=1327062563420 404 (Not Found)
The url for resources in rails are, to update or delete a user :
PUT /users/
DELETE /users/
does not seems to be respected here.
Any hints ? Can you reproduce ?
Ok so I added this in the view :
, {
xtype: 'hidden',
name : 'id',
fieldLabel: 'id'
}
so now when the record is loaded to be updated, it got an id. Without these lines, that's not the case.
There's still a problem when you create an user, and edit it directly ; there's no id, thereford no update.
Thank for the tip.
Problem solved!