{"action":"opened","issue":{"url":"https://api.github.com/repos/anastasiaalt/quiz/issues/3","repository_url":"https://api.github.com/repos/anastasiaalt/quiz","labels_url":"https://api.github.com/repos/anastasiaalt/quiz/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/anastasiaalt/quiz/issues/3/comments","events_url":"https://api.github.com/repos/anastasiaalt/quiz/issues/3/events","html_url":"https://github.com/anastasiaalt/quiz/issues/3","id":133021203,"number":3,"title":"Nested Loops Two Levels Deep","user":{"login":"anastasiaalt","id":14250754,"avatar_url":"https://avatars.githubusercontent.com/u/14250754?v=3","gravatar_id":"","url":"https://api.github.com/users/anastasiaalt","html_url":"https://github.com/anastasiaalt","followers_url":"https://api.github.com/users/anastasiaalt/followers","following_url":"https://api.github.com/users/anastasiaalt/following{/other_user}","gists_url":"https://api.github.com/users/anastasiaalt/gists{/gist_id}","starred_url":"https://api.github.com/users/anastasiaalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anastasiaalt/subscriptions","organizations_url":"https://api.github.com/users/anastasiaalt/orgs","repos_url":"https://api.github.com/users/anastasiaalt/repos","events_url":"https://api.github.com/users/anastasiaalt/events{/privacy}","received_events_url":"https://api.github.com/users/anastasiaalt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T16:31:11Z","updated_at":"2016-02-11T16:31:11Z","closed_at":null,"body":"I am trying to get all the options for a particular question for a particular quiz (options<question<quiz) to display. I have googled and tried various different syntax for nested loops. I am able to get all the questions for a particular quiz to display successfully (questions<quiz) but not able to go one layer deeper.... Here is my latest failing attempt (I have tried 10 or so related syntax experiments to this, moving around the end, adding a for and removing a for, adding the instance or @ and taking away, etc). I understand the concept but just not the syntax....\r\n\r\n```\r\n<% @quiz.questions.each do |question| %>\r\n  <p>\r\n    <strong>Question Description</strong>\r\n    <%= question.ask %>\r\n  </p>\r\n  <p>\r\n    <strong>Question Explanation</strong>\r\n    <%= question.explanation %>\r\n  </p>\r\n  <% for question.options do |option| %>\r\n    <p>\r\n      <strong>Option</strong>\r\n        <%= option.name %>\r\n    </p>\r\n  <% end %>\r\n<% end %>\r\n```"}}