{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/instant-search-demo/issues/16","labels_url":"https://api.github.com/repos/algolia/instant-search-demo/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/algolia/instant-search-demo/issues/16/comments","events_url":"https://api.github.com/repos/algolia/instant-search-demo/issues/16/events","html_url":"https://github.com/algolia/instant-search-demo/issues/16","id":100900415,"number":16,"title":"Uncaught TypeError: algoliaHelper.on is not a function","user":{"login":"tquill","id":3828141,"avatar_url":"https://avatars.githubusercontent.com/u/3828141?v=3","gravatar_id":"","url":"https://api.github.com/users/tquill","html_url":"https://github.com/tquill","followers_url":"https://api.github.com/users/tquill/followers","following_url":"https://api.github.com/users/tquill/following{/other_user}","gists_url":"https://api.github.com/users/tquill/gists{/gist_id}","starred_url":"https://api.github.com/users/tquill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tquill/subscriptions","organizations_url":"https://api.github.com/users/tquill/orgs","repos_url":"https://api.github.com/users/tquill/repos","events_url":"https://api.github.com/users/tquill/events{/privacy}","received_events_url":"https://api.github.com/users/tquill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-14T00:24:07Z","updated_at":"2015-08-15T00:53:29Z","closed_at":null,"body":"I'm having an issue integrating this into a rails application.  I've got app.js code copied almost exactly (I'm using handlebars instead of hogan), and the code breaks at this point:\r\n\r\n    // Search errors\r\n    algoliaHelper.on('error', function(error) {\r\n      console.log(error);\r\n    });\r\n\r\nIt says:\r\n> Uncaught TypeError: algoliaHelper.on is not a function\r\n\r\nDoes anyone know the issue?  My first thought is a conflict with jQuery somewhere, but my app is rather barebones at the moment, and I can't seem to prove that a conflict is the problem.  For reference, I'm running jQuery v2.1.3 as opposed to v2.1.4 in the example... though I don't suspect that would make a difference."},"comment":{"url":"https://api.github.com/repos/algolia/instant-search-demo/issues/comments/131274746","html_url":"https://github.com/algolia/instant-search-demo/issues/16#issuecomment-131274746","issue_url":"https://api.github.com/repos/algolia/instant-search-demo/issues/16","id":131274746,"user":{"login":"tquill","id":3828141,"avatar_url":"https://avatars.githubusercontent.com/u/3828141?v=3","gravatar_id":"","url":"https://api.github.com/users/tquill","html_url":"https://github.com/tquill","followers_url":"https://api.github.com/users/tquill/followers","following_url":"https://api.github.com/users/tquill/following{/other_user}","gists_url":"https://api.github.com/users/tquill/gists{/gist_id}","starred_url":"https://api.github.com/users/tquill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tquill/subscriptions","organizations_url":"https://api.github.com/users/tquill/orgs","repos_url":"https://api.github.com/users/tquill/repos","events_url":"https://api.github.com/users/tquill/events{/privacy}","received_events_url":"https://api.github.com/users/tquill/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T00:53:29Z","updated_at":"2015-08-15T00:53:29Z","body":"redox, I really appreciate the help.  I'm following app.js from this instant-search-demo exactly.  I'm using the same index too, I created a new one called \"products\" so I can just get this working.  The only change I've made is that I'm using handlebars for templating rather than hogan.\r\n\r\nIs this app.js out of date at all?\r\n\r\nAlso, I've removed the Rails API client and I'm just including these two scripts in-line:\r\n\r\n    <script src=\"//cdn.jsdelivr.net/algoliasearch/3/algoliasearch.min.js\"></script>\r\n    <script src=\"//cdn.jsdelivr.net/algoliasearch.helper/1/algoliasearch.helper.min.js\"></script>\r\n\r\nThe code seems to work fine all the way until:\r\n\r\n    algoliaHelper.on('error', function(error) {\r\n      console.log(error);\r\n    });\r\n\r\nThat's where it says:\r\n\r\n> Uncaught TypeError: algoliaHelper.on is not a function\r\n\r\nFrom the migration guide, this code does seem to return all the objects from the products index:\r\n\r\n    algoliaHelper.search('', {}, function(err, content) {\r\n      console.log(err, content);\r\n    });\r\n\r\nAny other ideas as to what I'm doing wrong?  I don't need to include the Rails API client do I?  At the moment, the only Algolia related code I'm using now is the app.js script from this \"instant-search-demo\" and the two cdn scripts I mentioned above in-line.  Again, I really appreciate the help."}}