{"action":"opened","issue":{"url":"https://api.github.com/repos/gagansharma/likeit/issues/1","labels_url":"https://api.github.com/repos/gagansharma/likeit/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gagansharma/likeit/issues/1/comments","events_url":"https://api.github.com/repos/gagansharma/likeit/issues/1/events","html_url":"https://github.com/gagansharma/likeit/issues/1","id":123182114,"number":1,"title":"Is it compatible with Rails 4 ?","user":{"login":"peyloride","id":10589068,"avatar_url":"https://avatars.githubusercontent.com/u/10589068?v=3","gravatar_id":"","url":"https://api.github.com/users/peyloride","html_url":"https://github.com/peyloride","followers_url":"https://api.github.com/users/peyloride/followers","following_url":"https://api.github.com/users/peyloride/following{/other_user}","gists_url":"https://api.github.com/users/peyloride/gists{/gist_id}","starred_url":"https://api.github.com/users/peyloride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peyloride/subscriptions","organizations_url":"https://api.github.com/users/peyloride/orgs","repos_url":"https://api.github.com/users/peyloride/repos","events_url":"https://api.github.com/users/peyloride/events{/privacy}","received_events_url":"https://api.github.com/users/peyloride/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-20T20:49:39Z","updated_at":"2015-12-20T20:49:39Z","closed_at":null,"body":"Hi, \r\n\r\nI was tryin likeit gem to my rails 4 app. But when i try \"rails g likeit\" i'm facing with errors;\r\n\r\n    rails g likeit\r\n    /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable or method `acts_as_voter' for User (call 'User.connection' to establish a connection):Class (NameError)\r\n\tfrom /home/peyloride/RailsProjects/ecokat/app/models/user.rb:7:in `<class:User>'\r\n\tfrom /home/peyloride/RailsProjects/ecokat/app/models/user.rb:1:in `<top (required)>'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:457:in `load'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:457:in `block in load_file'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:647:in `new_constants_in'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:456:in `load_file'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:354:in `require_or_load'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:494:in `load_missing_constant'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:184:in `const_missing'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:261:in `const_get'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:261:in `block in constantize'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:259:in `each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:259:in `inject'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:259:in `constantize'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:566:in `get'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:597:in `constantize'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise.rb:302:in `get'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:80:in `to'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:75:in `modules'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:92:in `routes'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:159:in `default_used_route'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:69:in `initialize'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise.rb:336:in `new'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise.rb:336:in `add_mapping'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:224:in `block in devise_for'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:223:in `each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:223:in `devise_for'\r\n\tfrom /home/peyloride/RailsProjects/ecokat/config/routes.rb:3:in `block in <top (required)>'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:434:in `instance_exec'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:434:in `eval_block'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:412:in `draw'\r\n\tfrom /home/peyloride/RailsProjects/ecokat/config/routes.rb:1:in `<top (required)>'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `block in load'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:40:in `each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:40:in `load_paths'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:16:in `reload!'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:26:in `block in updater'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/file_update_checker.rb:75:in `call'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/file_update_checker.rb:75:in `execute'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:27:in `updater'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `call'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'\r\n\tfrom /home/peyloride/RailsProjects/ecokat/config/environment.rb:5:in `<top (required)>'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.5.0/lib/spring/application.rb:92:in `preload'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.5.0/lib/spring/application.rb:143:in `serve'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.5.0/lib/spring/application.rb:131:in `block in run'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.5.0/lib/spring/application.rb:125:in `loop'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.5.0/lib/spring/application.rb:125:in `run'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/spring-1.5.0/lib/spring/application/boot.rb:18:in `<top (required)>'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /home/peyloride/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom -e:1:in `<main>'\r\n\r\n\r\nIs there any fix for that?"}}