{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/628","repository_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/628/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/628/events","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/628","id":208737989,"number":628,"title":"Handlebars show action","user":{"login":"doremaxime","id":24608045,"avatar_url":"https://avatars.githubusercontent.com/u/24608045?v=3","gravatar_id":"","url":"https://api.github.com/users/doremaxime","html_url":"https://github.com/doremaxime","followers_url":"https://api.github.com/users/doremaxime/followers","following_url":"https://api.github.com/users/doremaxime/following{/other_user}","gists_url":"https://api.github.com/users/doremaxime/gists{/gist_id}","starred_url":"https://api.github.com/users/doremaxime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doremaxime/subscriptions","organizations_url":"https://api.github.com/users/doremaxime/orgs","repos_url":"https://api.github.com/users/doremaxime/repos","events_url":"https://api.github.com/users/doremaxime/events{/privacy}","received_events_url":"https://api.github.com/users/doremaxime/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-02-19T18:58:16Z","updated_at":"2017-02-20T00:52:17Z","closed_at":null,"body":"A sort of continuation of issue: Can't handle the bars #623 which is about displaying index data onto the browser.\r\n\r\nI am attempting to do the same thing but for displaying a climb (singular - show action).\r\nI would think that the code is the same (or very similar).\r\nGoal: display 1 climb using an ID.\r\nIssue: UI is not displaying properly and no data on browser but data is showing in browser console, which means that the data is successfully being retrieved.\r\n\r\n\r\nshow-climb.handlebars:\r\n```javascript\r\n{{#each climbs as |climb|}}\r\n\r\n  <ul data-id=\"{{climb.id}}\">\r\n    <li><h1 data-id=\"{{climb.id}}\"> <small>id: {{climb.id}}, date: {{climb.date}}, grade: {{climb.grade}}</small></h1></li>\r\n  </ul>\r\n\r\n{{/each}}\r\n```\r\n(I have also tried commenting out the first and last line of this, so no **each**, and still no result.)\r\n\r\nui:\r\n```javascript\r\nconst showClimbsHandlerbars = require('../templates/helpers/show-climb.handlebars');\r\n\r\nconst showSuccess = (data) => {\r\n  console.log(data.climb);\r\n  let showClimbHtml = showClimbsHandlerbars({ climbs: data.climb });\r\n  $('.view').html(showClimbHtml);\r\n};\r\n```\r\nThe index action version has an ```s``` at the end of the last **climb** in ```showClimbsHandlerbars({ climbs: data.climb });``` but it wasn't working for the show action so i took it off which makes sense since there is only one instance. Currently, without the ```s``` this is what displays:\r\n![screen shot 2017-02-19 at 1 52 53 pm](https://cloud.githubusercontent.com/assets/24608045/23105275/cd7a3dbe-f6aa-11e6-9678-cb965ad03c6e.png)\r\nWhy there are 3 lines and no data I don't understand as only 1 climb is being retrieved and confirmed by the browser console. Same thing displays when the **each** lines are commented out in **show-climb.handlebars**\r\n\r\nhtml:\r\n```html\r\n      <div class=\"view\">\r\n      </div>\r\n```"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/comments/280964288","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/628#issuecomment-280964288","issue_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/628","id":280964288,"user":{"login":"doremaxime","id":24608045,"avatar_url":"https://avatars.githubusercontent.com/u/24608045?v=3","gravatar_id":"","url":"https://api.github.com/users/doremaxime","html_url":"https://github.com/doremaxime","followers_url":"https://api.github.com/users/doremaxime/followers","following_url":"https://api.github.com/users/doremaxime/following{/other_user}","gists_url":"https://api.github.com/users/doremaxime/gists{/gist_id}","starred_url":"https://api.github.com/users/doremaxime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doremaxime/subscriptions","organizations_url":"https://api.github.com/users/doremaxime/orgs","repos_url":"https://api.github.com/users/doremaxime/repos","events_url":"https://api.github.com/users/doremaxime/events{/privacy}","received_events_url":"https://api.github.com/users/doremaxime/received_events","type":"User","site_admin":false},"created_at":"2017-02-20T00:52:17Z","updated_at":"2017-02-20T00:52:17Z","body":"No errors, I get:\r\n![screen shot 2017-02-19 at 7 51 25 pm](https://cloud.githubusercontent.com/assets/24608045/23108551/e1ca6e92-f6dc-11e6-8cd3-1ff5827e4a3c.png)\r\n![screen shot 2017-02-19 at 7 51 31 pm](https://cloud.githubusercontent.com/assets/24608045/23108550/e1c97bae-f6dc-11e6-9ae3-c3fb0bb61348.png)\r\n"}}
{"actor":{"display_login":"doremaxime"}}