{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/searchkick/issues/599","labels_url":"https://api.github.com/repos/ankane/searchkick/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/ankane/searchkick/issues/599/comments","events_url":"https://api.github.com/repos/ankane/searchkick/issues/599/events","html_url":"https://github.com/ankane/searchkick/issues/599","id":126225953,"number":599,"title":"undefined local variable or method `searchkick'","user":{"login":"f7n","id":920125,"avatar_url":"https://avatars.githubusercontent.com/u/920125?v=3","gravatar_id":"","url":"https://api.github.com/users/f7n","html_url":"https://github.com/f7n","followers_url":"https://api.github.com/users/f7n/followers","following_url":"https://api.github.com/users/f7n/following{/other_user}","gists_url":"https://api.github.com/users/f7n/gists{/gist_id}","starred_url":"https://api.github.com/users/f7n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f7n/subscriptions","organizations_url":"https://api.github.com/users/f7n/orgs","repos_url":"https://api.github.com/users/f7n/repos","events_url":"https://api.github.com/users/f7n/events{/privacy}","received_events_url":"https://api.github.com/users/f7n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-12T17:07:16Z","updated_at":"2016-01-12T18:19:03Z","closed_at":"2016-01-12T18:19:03Z","body":"I'm trying to use searchkick along with my Neo4j database and Sinatra. I'm getting this error:\r\n\r\n\tNameError: undefined local variable or method `searchkick' for Movie:Class\r\n\t\r\n\tmodels/movie.rb:4:in `<class:Movie>'\r\n\tmodels/movie.rb:1:in `<top (required)>'\r\n\t/Users/fin/Documents/uni/4th Year/Honours Project/build-v2/environment.rb:7:in `load'\r\n\t/Users/fin/Documents/uni/4th Year/Honours Project/build-v2/environment.rb:7:in `block in <top (required)>'\r\n\t/Users/fin/Documents/uni/4th Year/Honours Project/build-v2/environment.rb:6:in `each'\r\n\t/Users/fin/Documents/uni/4th Year/Honours Project/build-v2/environment.rb:6:in `<top (required)>'\r\n\t/Users/fin/Documents/uni/4th Year/Honours Project/build-v2/app.rb:1:in `require'\r\n\t/Users/fin/Documents/uni/4th Year/Honours Project/build-v2/app.rb:1:in `<top (required)>'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/loader.rb:115:in `require'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/loader.rb:115:in `inner_app'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/loader.rb:103:in `assemble_app'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/loader.rb:86:in `proceed_as_child'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/loader.rb:31:in `call!'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/loader.rb:18:in `call'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/favicon.rb:12:in `call'\r\n\t/Library/Ruby/Gems/2.0.0/gems/shotgun-0.9.1/lib/shotgun/static.rb:14:in `call'\r\n\t/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in call'\r\n\t/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each'\r\n\t/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call'\r\n\t/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'\r\n\t/Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'\r\n\t/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'\r\n\t/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'\r\n\t/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'\r\n\r\nHere is my Model file:\r\n\r\n\tclass Movie\r\n\t  include Neo4j::ActiveNode\r\n\t\r\n\t  searchkick\r\n\t\r\n\t  property :id\r\n\t  property :movieID\r\n\t  property :title\r\n\t  property :year\r\n\t  property :imdB\r\n\t  property :rtRating\r\n\t  property :poster\r\n\tend\r\n\r\nand the gemfile: \r\n\r\n\tsource 'https://rubygems.org'\r\n\t\r\n\tgem 'searchkick'\r\n\tgem 'sinatra'\r\n\tgem 'neo4j'\r\n\tgem 'haml'\r\n\tgem 'shotgun'\r\n\r\nJust to confirm: I don't need to require this gem anywhere right? Just include it in my gemfile?"},"comment":{"url":"https://api.github.com/repos/ankane/searchkick/issues/comments/171000840","html_url":"https://github.com/ankane/searchkick/issues/599#issuecomment-171000840","issue_url":"https://api.github.com/repos/ankane/searchkick/issues/599","id":171000840,"user":{"login":"f7n","id":920125,"avatar_url":"https://avatars.githubusercontent.com/u/920125?v=3","gravatar_id":"","url":"https://api.github.com/users/f7n","html_url":"https://github.com/f7n","followers_url":"https://api.github.com/users/f7n/followers","following_url":"https://api.github.com/users/f7n/following{/other_user}","gists_url":"https://api.github.com/users/f7n/gists{/gist_id}","starred_url":"https://api.github.com/users/f7n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f7n/subscriptions","organizations_url":"https://api.github.com/users/f7n/orgs","repos_url":"https://api.github.com/users/f7n/repos","events_url":"https://api.github.com/users/f7n/events{/privacy}","received_events_url":"https://api.github.com/users/f7n/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T18:19:03Z","updated_at":"2016-01-12T18:19:03Z","body":"Thank you, I will do that."}}