update/edit finally working with RESTful controllers