{"action":"closed","issue":{"url":"https://api.github.com/repos/zaru/webpush/issues/35","repository_url":"https://api.github.com/repos/zaru/webpush","labels_url":"https://api.github.com/repos/zaru/webpush/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/zaru/webpush/issues/35/comments","events_url":"https://api.github.com/repos/zaru/webpush/issues/35/events","html_url":"https://github.com/zaru/webpush/issues/35","id":194853681,"number":35,"title":"Where should the post endpoint be placed","user":{"login":"jorgecuevas92","id":6667949,"avatar_url":"https://avatars.githubusercontent.com/u/6667949?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgecuevas92","html_url":"https://github.com/jorgecuevas92","followers_url":"https://api.github.com/users/jorgecuevas92/followers","following_url":"https://api.github.com/users/jorgecuevas92/following{/other_user}","gists_url":"https://api.github.com/users/jorgecuevas92/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgecuevas92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgecuevas92/subscriptions","organizations_url":"https://api.github.com/users/jorgecuevas92/orgs","repos_url":"https://api.github.com/users/jorgecuevas92/repos","events_url":"https://api.github.com/users/jorgecuevas92/events{/privacy}","received_events_url":"https://api.github.com/users/jorgecuevas92/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-11T20:20:13Z","updated_at":"2016-12-13T00:18:35Z","closed_at":"2016-12-13T00:18:35Z","body":"I've been unable to make the endpoint work the way it is stated on the read me. It says:\r\n\r\n\"Imagine a Ruby app endpoint that responds to the request by triggering notification through the webpush gem.\"\r\n\r\nAnd the code itself says it should go on app.rb but so far I've had errors on server start up by placing the code inside application.rb\r\n\r\nI also tried creating a route and executing the code inside a controller but I get the following error:\r\n\r\n> NoMethodError in DemoController#push\r\n> undefined method `gsub' for nil:NilClass\r\n\r\nI'm using rails 4.2.6\r\n\r\nWhat am I missing to make this work?"}}
{"actor":{"display_login":"jorgecuevas92"}}