{"action":"created","issue":{"url":"https://api.github.com/repos/denkGroot/Spina/issues/172","repository_url":"https://api.github.com/repos/denkGroot/Spina","labels_url":"https://api.github.com/repos/denkGroot/Spina/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/denkGroot/Spina/issues/172/comments","events_url":"https://api.github.com/repos/denkGroot/Spina/issues/172/events","html_url":"https://github.com/denkGroot/Spina/issues/172","id":165153013,"number":172,"title":"undefined method '[]' for nil:NilClass while creating a Structure","user":{"login":"djflorio","id":10994136,"avatar_url":"https://avatars.githubusercontent.com/u/10994136?v=3","gravatar_id":"","url":"https://api.github.com/users/djflorio","html_url":"https://github.com/djflorio","followers_url":"https://api.github.com/users/djflorio/followers","following_url":"https://api.github.com/users/djflorio/following{/other_user}","gists_url":"https://api.github.com/users/djflorio/gists{/gist_id}","starred_url":"https://api.github.com/users/djflorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djflorio/subscriptions","organizations_url":"https://api.github.com/users/djflorio/orgs","repos_url":"https://api.github.com/users/djflorio/repos","events_url":"https://api.github.com/users/djflorio/events{/privacy}","received_events_url":"https://api.github.com/users/djflorio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/denkGroot/Spina/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-12T18:53:36Z","updated_at":"2016-08-16T12:39:48Z","closed_at":null,"body":"Using rails 4.2.6\r\n\r\nAfter creating a page_part with a partable_type of 'Spina::Structure', the following error is produced after restarting the rails server and attempting to make a new page:\r\n\r\nShowing /Users/varick21/.rvm/gems/ruby-2.3.1/gems/spina-0.9.0/app/views/spina/admin/page_partables/structures/_form.html.haml where line #16 raised:\r\n\r\nundefined method `[]' for nil:NilClass\r\n\r\nExtracted source (around line #26):\r\n`def build_structure_parts(name, item)\r\n        structure = current_theme.structures.find { |structure| structure[:name] == name }\r\n        structure[:structure_parts].each do |part|\r\n          part = item.structure_parts.build(part)\r\n          part.structure_partable = part.structure_partable_type.constantize.new\r\n        end`"},"comment":{"url":"https://api.github.com/repos/denkGroot/Spina/issues/comments/240089383","html_url":"https://github.com/denkGroot/Spina/issues/172#issuecomment-240089383","issue_url":"https://api.github.com/repos/denkGroot/Spina/issues/172","id":240089383,"user":{"login":"djflorio","id":10994136,"avatar_url":"https://avatars.githubusercontent.com/u/10994136?v=3","gravatar_id":"","url":"https://api.github.com/users/djflorio","html_url":"https://github.com/djflorio","followers_url":"https://api.github.com/users/djflorio/followers","following_url":"https://api.github.com/users/djflorio/following{/other_user}","gists_url":"https://api.github.com/users/djflorio/gists{/gist_id}","starred_url":"https://api.github.com/users/djflorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djflorio/subscriptions","organizations_url":"https://api.github.com/users/djflorio/orgs","repos_url":"https://api.github.com/users/djflorio/repos","events_url":"https://api.github.com/users/djflorio/events{/privacy}","received_events_url":"https://api.github.com/users/djflorio/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T12:39:48Z","updated_at":"2016-08-16T12:39:48Z","body":"I must be mistaken about how structures work and/or how they're defined then. Is it not just a matter of making a page_part, and then including it with the view template like I did above?"}}
{"actor":{"display_login":"djflorio"}}