{"action":"opened","issue":{"url":"https://api.github.com/repos/antulik/pagelet_rails/issues/2","repository_url":"https://api.github.com/repos/antulik/pagelet_rails","labels_url":"https://api.github.com/repos/antulik/pagelet_rails/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/antulik/pagelet_rails/issues/2/comments","events_url":"https://api.github.com/repos/antulik/pagelet_rails/issues/2/events","html_url":"https://github.com/antulik/pagelet_rails/issues/2","id":181679080,"number":2,"title":"`pagelet_resource': undefined method `<<' for nil:NilClass (NoMethodError)","user":{"login":"knightq","id":157528,"avatar_url":"https://avatars.githubusercontent.com/u/157528?v=3","gravatar_id":"","url":"https://api.github.com/users/knightq","html_url":"https://github.com/knightq","followers_url":"https://api.github.com/users/knightq/followers","following_url":"https://api.github.com/users/knightq/following{/other_user}","gists_url":"https://api.github.com/users/knightq/gists{/gist_id}","starred_url":"https://api.github.com/users/knightq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knightq/subscriptions","organizations_url":"https://api.github.com/users/knightq/orgs","repos_url":"https://api.github.com/users/knightq/repos","events_url":"https://api.github.com/users/knightq/events{/privacy}","received_events_url":"https://api.github.com/users/knightq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T14:11:33Z","updated_at":"2016-10-07T14:11:33Z","closed_at":null,"body":"Hi,\r\n\r\nfollowing the doc I'm getting a: \r\n\r\n    ~/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pagelet_rails-0.1.4/lib/pagelet_rails/concerns/routes.rb:29:in `pagelet_resource': undefined method `<<' for nil:NilClass (NoMethodError)\r\n        from ~/Development/epersonam/app/pagelets/guest_info/guest_info_controller.rb:9:in `<class:GuestInfoController>'\r\n        from ~/Development/epersonam/app/pagelets/guest_info/guest_info_controller.rb:4:in `<module:GuestInfo>'\r\n        from ~/Development/epersonam/app/pagelets/guest_info/guest_info_controller.rb:3:in `<module:Pagelets>'\r\n        from ~/Development/epersonam/app/pagelets/guest_info/guest_info_controller.rb:2:in `<top (required)>'\r\n        from ~/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:457:in `load'\r\non Rails boot.\r\n\r\nHere is my controller (under) `app/pagelets/guest_info`\r\n```ruby\r\n# app/pagelets/guest_info/guest_info_controller.rb\r\nmodule Pagelets\r\n  module GuestInfo\r\n    class GuestInfoController < Pagelets::BaseController\r\n      # add pagelets_guest_info_path route\r\n      # which gives \"/pagelets/guest_info\" url route\r\n      pagelet_resource only: [:show]\r\n\r\n      def show\r\n      end\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nI've also tried with:\r\n```ruby\r\n# app/pagelets/guest_info/guest_info_controller.rb\r\nmodule Pagelets\r\n  module GuestInfo\r\n    class GuestInfoController < ApplicationController\r\n      include PageletRails::Concerns::Controller\r\n\r\n      # add pagelets_guest_info_path route\r\n      # which gives \"/pagelets/guest_info\" url route\r\n      pagelet_resource only: [:show]\r\n\r\n      def show\r\n      end\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nbut I get the same error.\r\n\r\n**Ruby**: 2.3.1\r\n**RoR**: 4.2.6\r\n**pagelet_rails**: 0.1.4\r\n"}}
{"actor":{"display_login":"knightq"}}