{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/docs/issues/2327","labels_url":"https://api.github.com/repos/cakephp/docs/issues/2327/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/docs/issues/2327/comments","events_url":"https://api.github.com/repos/cakephp/docs/issues/2327/events","html_url":"https://github.com/cakephp/docs/pull/2327","id":55502307,"number":2327,"title":"Add Flash message and redirect in case delete fails","user":{"login":"hakermania","id":131824,"avatar_url":"https://avatars.githubusercontent.com/u/131824?v=3","gravatar_id":"","url":"https://api.github.com/users/hakermania","html_url":"https://github.com/hakermania","followers_url":"https://api.github.com/users/hakermania/followers","following_url":"https://api.github.com/users/hakermania/following{/other_user}","gists_url":"https://api.github.com/users/hakermania/gists{/gist_id}","starred_url":"https://api.github.com/users/hakermania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakermania/subscriptions","organizations_url":"https://api.github.com/users/hakermania/orgs","repos_url":"https://api.github.com/users/hakermania/repos","events_url":"https://api.github.com/users/hakermania/events{/privacy}","received_events_url":"https://api.github.com/users/hakermania/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T16:21:43Z","updated_at":"2015-01-26T17:26:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/docs/pulls/2327","html_url":"https://github.com/cakephp/docs/pull/2327","diff_url":"https://github.com/cakephp/docs/pull/2327.diff","patch_url":"https://github.com/cakephp/docs/pull/2327.patch"},"body":"With the current tutorial, if a delete operation fails you are met with a cakePHP error message informing you about the delete action not having its own View (because in case of failure not redirection takes place).\r\n\r\nInstead, you should be shown a corresponding flash message and be redirected to the index page.\r\n\r\nThe simplest case to reproduce this is to open the posts/index page in 2 tabs and delete one post from the one tab and then try to delete the same post from the other tab."},"comment":{"url":"https://api.github.com/repos/cakephp/docs/issues/comments/71499623","html_url":"https://github.com/cakephp/docs/pull/2327#issuecomment-71499623","issue_url":"https://api.github.com/repos/cakephp/docs/issues/2327","id":71499623,"user":{"login":"dereuromark","id":39854,"avatar_url":"https://avatars.githubusercontent.com/u/39854?v=3","gravatar_id":"","url":"https://api.github.com/users/dereuromark","html_url":"https://github.com/dereuromark","followers_url":"https://api.github.com/users/dereuromark/followers","following_url":"https://api.github.com/users/dereuromark/following{/other_user}","gists_url":"https://api.github.com/users/dereuromark/gists{/gist_id}","starred_url":"https://api.github.com/users/dereuromark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereuromark/subscriptions","organizations_url":"https://api.github.com/users/dereuromark/orgs","repos_url":"https://api.github.com/users/dereuromark/repos","events_url":"https://api.github.com/users/dereuromark/events{/privacy}","received_events_url":"https://api.github.com/users/dereuromark/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T17:26:38Z","updated_at":"2015-01-26T17:26:38Z","body":"Sounds reasonable to me :+1: "}}