{"action":"created","issue":{"url":"https://api.github.com/repos/EventedMind/iron-router/issues/1199","labels_url":"https://api.github.com/repos/EventedMind/iron-router/issues/1199/labels{/name}","comments_url":"https://api.github.com/repos/EventedMind/iron-router/issues/1199/comments","events_url":"https://api.github.com/repos/EventedMind/iron-router/issues/1199/events","html_url":"https://github.com/EventedMind/iron-router/issues/1199","id":55541680,"number":1199,"title":"Access URL parameters inside AppController?","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T21:42:01Z","updated_at":"2015-01-26T21:50:11Z","closed_at":null,"body":"I am trying to figure out the best way to access an URL parameter in a AppController. My goal is to pass the url string into a subscription function or server method, to retrieve relevant documents. As far as I understand, this can be done in a Router via `this.params.paramName`. Is there some similar way to achieve this using AppController? Is there a different strategy that I can try?"},"comment":{"url":"https://api.github.com/repos/EventedMind/iron-router/issues/comments/71545663","html_url":"https://github.com/EventedMind/iron-router/issues/1199#issuecomment-71545663","issue_url":"https://api.github.com/repos/EventedMind/iron-router/issues/1199","id":71545663,"user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T21:50:10Z","updated_at":"2015-01-26T21:50:10Z","body":"I get an error when trying the following code:\r\n```javascript\r\nTaggedResourcesController = AppController.extend({\r\n    waitOn: function() {\r\n        //        return this.subscribe('resources');\r\n    },\r\n    data: {\r\n        resources: Resources.find({'keywords': this.params.tag}).fetch()\r\n    }\r\n});\r\n```\r\n\r\nError: \r\n```\r\nTypeError: Cannot read property 'tag' of undefined\r\n```"}}