{"action":"created","issue":{"url":"https://api.github.com/repos/voltrb/volt/issues/168","labels_url":"https://api.github.com/repos/voltrb/volt/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/voltrb/volt/issues/168/comments","events_url":"https://api.github.com/repos/voltrb/volt/issues/168/events","html_url":"https://github.com/voltrb/volt/issues/168","id":71787977,"number":168,"title":"Can't access container or dom_nodes from model controller","user":{"login":"mathieul","id":5443,"avatar_url":"https://avatars.githubusercontent.com/u/5443?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieul","html_url":"https://github.com/mathieul","followers_url":"https://api.github.com/users/mathieul/followers","following_url":"https://api.github.com/users/mathieul/following{/other_user}","gists_url":"https://api.github.com/users/mathieul/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieul/subscriptions","organizations_url":"https://api.github.com/users/mathieul/orgs","repos_url":"https://api.github.com/users/mathieul/repos","events_url":"https://api.github.com/users/mathieul/events{/privacy}","received_events_url":"https://api.github.com/users/mathieul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T06:08:47Z","updated_at":"2015-04-29T21:42:58Z","closed_at":"2015-04-29T21:42:45Z","body":"Hello,\r\n\r\nFirst of all thank you so much for this framework, it is so refreshing!\r\n\r\nI'm trying to access a component container or DOM nodes from a model controller after action callback (`index_ready`) following the jQuery FAQ from the documentation (http://docs.voltframework.com/en/getting_help/can_i_use_jquery_or_other_dom_manipulating_js.html), but I can't seem to access it right.\r\n\r\ni.e.:\r\n\r\n```ruby\r\ndef index_ready\r\n  node = self.container\r\n  `console.log(node)`\r\nend\r\n```\r\n\r\nWhen the callback runs it throws an error:\r\n\r\n```\r\nError during render of template at main/main/index: #<NoMethodError: 'undefined method `container_node' for #<Volt::AttributeSection:0x1e4>'>  page.js:15432\r\n\r\n\"NoMethodError: undefined method `container_node' for #<Volt::AttributeSection:0x1e4>\"\r\n\"   at OpalClass.$new (http://localhost:3000/assets/volt/page/page.js:3361:15)\"\r\n[...]\r\n```\r\n\r\nTrying to access the range of DOM nodes with `self.dom_nodes` triggers a similar error, but this time with `range`:\r\n\r\n```\r\nError during render of template at main/main/index: #<NoMethodError: 'undefined method `range' for #<Volt::AttributeSection:0x1e4>'\r\n```\r\n\r\nI'm using 0.9.0 or 0.9.1.pre3. Am I accessing the component element(s) the wrong way?"},"comment":{"url":"https://api.github.com/repos/voltrb/volt/issues/comments/97595722","html_url":"https://github.com/voltrb/volt/issues/168#issuecomment-97595722","issue_url":"https://api.github.com/repos/voltrb/volt/issues/168","id":97595722,"user":{"login":"ryanstout","id":42336,"avatar_url":"https://avatars.githubusercontent.com/u/42336?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanstout","html_url":"https://github.com/ryanstout","followers_url":"https://api.github.com/users/ryanstout/followers","following_url":"https://api.github.com/users/ryanstout/following{/other_user}","gists_url":"https://api.github.com/users/ryanstout/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanstout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanstout/subscriptions","organizations_url":"https://api.github.com/users/ryanstout/orgs","repos_url":"https://api.github.com/users/ryanstout/repos","events_url":"https://api.github.com/users/ryanstout/events{/privacy}","received_events_url":"https://api.github.com/users/ryanstout/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T21:42:58Z","updated_at":"2015-04-29T21:42:58Z","body":"Should work now, let me know if it doesn't."}}