Remove bank data with GRAILS AND GORM

0

I am learning a bit of GRAILS and I have the following problem I can display the information of some users usually registered when I try to delete them I can not and I do not receive any error, follow the code

def delete() {
    Usuario user = Usuario.get(params.id)
    user.delete()
    redirect action:"index"
}

If I print on the screen this variable user I have access to all user information but when I try to remove it nothing happens

I am sending id so delete/id

// EDIT I'm having the same problem updating the data ..

    
asked by anonymous 30.06.2014 / 03:10

1 answer

1

I found that you had to send flush:true together because hibernate does not update data instantly

    
30.06.2014 / 05:02