{"action":"created","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab/issues/2","repository_url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab","labels_url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab/issues/2/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab/issues/2/events","html_url":"https://github.com/learn-co-curriculum/crud-with-validations-lab/issues/2","id":133821100,"number":2,"title":"link_to 'Delete' doesn't work","user":{"login":"lisamarie616","id":12042459,"avatar_url":"https://avatars.githubusercontent.com/u/12042459?v=3","gravatar_id":"","url":"https://api.github.com/users/lisamarie616","html_url":"https://github.com/lisamarie616","followers_url":"https://api.github.com/users/lisamarie616/followers","following_url":"https://api.github.com/users/lisamarie616/following{/other_user}","gists_url":"https://api.github.com/users/lisamarie616/gists{/gist_id}","starred_url":"https://api.github.com/users/lisamarie616/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisamarie616/subscriptions","organizations_url":"https://api.github.com/users/lisamarie616/orgs","repos_url":"https://api.github.com/users/lisamarie616/repos","events_url":"https://api.github.com/users/lisamarie616/events{/privacy}","received_events_url":"https://api.github.com/users/lisamarie616/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-15T21:26:44Z","updated_at":"2016-02-23T17:37:06Z","closed_at":null,"body":"Regarding this line of code in crud-with-validations-lab-v-000/app/views/songs/index.html.erb (line 27):\r\n\r\n`<%= link_to 'Delete', song, method: :delete, data: { confirm: 'For real?' } %>`\r\n\r\nI was having some trouble with this requirement \"Allow deleting songs with a link, using link_to\", so I pulled down the learn-co solution and found that it doesn't work either. The delete link created here goes to the show page rather than the destroy action.\r\n\r\nI found this on SO:\r\nhttp://stackoverflow.com/questions/18154916/rails-4-link-to-destroy-not-working-in-getting-started-tutorial\r\nbut even doing what's suggested in this post, I couldn't get it working."},"comment":{"url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab/issues/comments/187808058","html_url":"https://github.com/learn-co-curriculum/crud-with-validations-lab/issues/2#issuecomment-187808058","issue_url":"https://api.github.com/repos/learn-co-curriculum/crud-with-validations-lab/issues/2","id":187808058,"user":{"login":"lisamarie616","id":12042459,"avatar_url":"https://avatars.githubusercontent.com/u/12042459?v=3","gravatar_id":"","url":"https://api.github.com/users/lisamarie616","html_url":"https://github.com/lisamarie616","followers_url":"https://api.github.com/users/lisamarie616/followers","following_url":"https://api.github.com/users/lisamarie616/following{/other_user}","gists_url":"https://api.github.com/users/lisamarie616/gists{/gist_id}","starred_url":"https://api.github.com/users/lisamarie616/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisamarie616/subscriptions","organizations_url":"https://api.github.com/users/lisamarie616/orgs","repos_url":"https://api.github.com/users/lisamarie616/repos","events_url":"https://api.github.com/users/lisamarie616/events{/privacy}","received_events_url":"https://api.github.com/users/lisamarie616/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T17:37:06Z","updated_at":"2016-02-23T17:37:06Z","body":"Yes, the Learn expert who helped me said he was stumped on this one. I just\nused a button instead and moved on. Thanks!\nOn Feb 23, 2016 9:22 AM, \"AnnJohn\" <notifications@github.com> wrote:\n\n> Thanks for @lisamarie616 <https://github.com/lisamarie616> for raising\n> this. We'll look into it soon but in the mean time have you used the Ask a\n> Question tool to get support? Thanks!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/learn-co-curriculum/crud-with-validations-lab/issues/2#issuecomment-187799230>\n> .\n>\n"}}