{"comment":{"url":"https://api.github.com/repos/steven503/blocitoff/comments/11693020","html_url":"https://github.com/steven503/blocitoff/commit/2770fe8decc81cda708a02494bf6cc87ce90a765#commitcomment-11693020","id":11693020,"user":{"login":"steven503","id":11160967,"avatar_url":"https://avatars.githubusercontent.com/u/11160967?v=3","gravatar_id":"","url":"https://api.github.com/users/steven503","html_url":"https://github.com/steven503","followers_url":"https://api.github.com/users/steven503/followers","following_url":"https://api.github.com/users/steven503/following{/other_user}","gists_url":"https://api.github.com/users/steven503/gists{/gist_id}","starred_url":"https://api.github.com/users/steven503/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven503/subscriptions","organizations_url":"https://api.github.com/users/steven503/orgs","repos_url":"https://api.github.com/users/steven503/repos","events_url":"https://api.github.com/users/steven503/events{/privacy}","received_events_url":"https://api.github.com/users/steven503/received_events","type":"User","site_admin":false},"position":4,"line":4,"path":"app/views/items/_item.html.erb","commit_id":"2770fe8decc81cda708a02494bf6cc87ce90a765","created_at":"2015-06-16T01:02:34Z","updated_at":"2015-06-16T01:02:34Z","body":"@levicole this obviously isn't the way to render items already associated with a user and generates the following error:\r\n```bash\r\nStarted GET \"/\" for ::1 at 2015-06-15 19:55:51 -0500\r\n  User Load (0.1ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"id\" = ?  ORDER BY \"users\".\"id\" ASC LIMIT 1  [[\"id\", 2]]\r\nProcessing by UsersController#show as HTML\r\n  Rendered items/_item.html.erb (2.1ms)\r\n  Rendered users/show.html.erb within layouts/application (3.1ms)\r\nCompleted 500 Internal Server Error in 7ms\r\n\r\nActionView::Template::Error ('nil' is not an ActiveModel-compatible object. It must implement :to_partial_path.):\r\n    1: <br>\r\n    2: <h3>To-do items:</h3>\r\n    3: \r\n    4: <%= render @items %>\r\n  app/views/items/_item.html.erb:4:in `_app_views_items__item_html_erb__2432554498490135449_70194675810960'\r\n  app/views/users/show.html.erb:7:in `_app_views_users_show_html_erb___2387829553406314504_70194675109040'\r\n\r\n\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.5ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (51.9ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.3ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.2ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.2ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (39.1ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.2ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)\r\n  Rendered /Users/sfiller/.rvm/gems/ruby-2.2.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (86.3ms)\r\n```"}}