{"action":"created","issue":{"url":"https://api.github.com/repos/merit-gem/merit/issues/248","repository_url":"https://api.github.com/repos/merit-gem/merit","labels_url":"https://api.github.com/repos/merit-gem/merit/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/merit-gem/merit/issues/248/comments","events_url":"https://api.github.com/repos/merit-gem/merit/issues/248/events","html_url":"https://github.com/merit-gem/merit/issues/248","id":141372144,"number":248,"title":"Merit reputation gem not hitting second tier routes","user":{"login":"top1select","id":3697248,"avatar_url":"https://avatars.githubusercontent.com/u/3697248?v=3","gravatar_id":"","url":"https://api.github.com/users/top1select","html_url":"https://github.com/top1select","followers_url":"https://api.github.com/users/top1select/followers","following_url":"https://api.github.com/users/top1select/following{/other_user}","gists_url":"https://api.github.com/users/top1select/gists{/gist_id}","starred_url":"https://api.github.com/users/top1select/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top1select/subscriptions","organizations_url":"https://api.github.com/users/top1select/orgs","repos_url":"https://api.github.com/users/top1select/repos","events_url":"https://api.github.com/users/top1select/events{/privacy}","received_events_url":"https://api.github.com/users/top1select/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/merit-gem/merit/labels/question/discussion","name":"question/discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-03-16T19:07:45Z","updated_at":"2016-03-17T01:23:00Z","closed_at":null,"body":"I'm trying to integrate Merit reputation gem into my existing Rails apps, and have some questions about one rule not hitting Rails routes.\r\n\r\n**person.rb**\r\n\r\n    class Person < ActiveRecord::Base\r\n      has_merit\r\n\r\n    has_many :listings, -> { where(deleted: 0) }, :dependent => :destroy, :foreign_key => \"author_id\"\r\n\r\n**listing.rb**\r\n\r\n    class Listing < ActiveRecord::Base\r\n      has_merit\r\n\r\nI have two rules in Merit::PointRulesMethods,\r\n\r\n**point_rules.rb**\r\n\r\n\r\nThis one is working perfectly,\r\n\r\n      score 1, :on => 'people#create', model_name: 'Person', to: :itself\r\n\r\nBut not this, it's just not working w/o any error messages:\r\n\r\n      score 1, :on => 'people/listings#create', model_name: 'Listing', to: :itself\r\n\r\nWhat's the right way to define the second rule?\r\n\r\nMany thanks!"},"comment":{"url":"https://api.github.com/repos/merit-gem/merit/issues/comments/197636417","html_url":"https://github.com/merit-gem/merit/issues/248#issuecomment-197636417","issue_url":"https://api.github.com/repos/merit-gem/merit/issues/248","id":197636417,"user":{"login":"tute","id":54260,"avatar_url":"https://avatars.githubusercontent.com/u/54260?v=3","gravatar_id":"","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T01:23:00Z","updated_at":"2016-03-17T01:23:00Z","body":"Can you post the entire log for that action, where you would expect to see the SQL INSERT?"}}