{"action":"created","issue":{"url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource/issues/188","repository_url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource","labels_url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource/issues/188/comments","events_url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource/issues/188/events","html_url":"https://github.com/FineLinePrototyping/angularjs-rails-resource/issues/188","id":133619499,"number":188,"title":"How to send request to a custom route?","user":{"login":"vhilly","id":3907791,"avatar_url":"https://avatars.githubusercontent.com/u/3907791?v=3","gravatar_id":"","url":"https://api.github.com/users/vhilly","html_url":"https://github.com/vhilly","followers_url":"https://api.github.com/users/vhilly/followers","following_url":"https://api.github.com/users/vhilly/following{/other_user}","gists_url":"https://api.github.com/users/vhilly/gists{/gist_id}","starred_url":"https://api.github.com/users/vhilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhilly/subscriptions","organizations_url":"https://api.github.com/users/vhilly/orgs","repos_url":"https://api.github.com/users/vhilly/repos","events_url":"https://api.github.com/users/vhilly/events{/privacy}","received_events_url":"https://api.github.com/users/vhilly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-15T04:18:35Z","updated_at":"2016-02-16T06:26:59Z","closed_at":null,"body":"Let's say I have the following rails route..\r\n\r\nresources :members do\r\n  member do \r\n    get 'approve_membership'\r\n  end\r\nend\r\n\r\n\r\nhow do I send request to  'members/1234/approve_membership' ?"},"comment":{"url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource/issues/comments/184541352","html_url":"https://github.com/FineLinePrototyping/angularjs-rails-resource/issues/188#issuecomment-184541352","issue_url":"https://api.github.com/repos/FineLinePrototyping/angularjs-rails-resource/issues/188","id":184541352,"user":{"login":"vhilly","id":3907791,"avatar_url":"https://avatars.githubusercontent.com/u/3907791?v=3","gravatar_id":"","url":"https://api.github.com/users/vhilly","html_url":"https://github.com/vhilly","followers_url":"https://api.github.com/users/vhilly/followers","following_url":"https://api.github.com/users/vhilly/following{/other_user}","gists_url":"https://api.github.com/users/vhilly/gists{/gist_id}","starred_url":"https://api.github.com/users/vhilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhilly/subscriptions","organizations_url":"https://api.github.com/users/vhilly/orgs","repos_url":"https://api.github.com/users/vhilly/repos","events_url":"https://api.github.com/users/vhilly/events{/privacy}","received_events_url":"https://api.github.com/users/vhilly/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T06:26:58Z","updated_at":"2016-02-16T06:26:58Z","body":"Hi,\n\nThanks for quick reply. Can you give me a sample?\n\nThanks in advance\n> On Feb 16, 2016, at 9:44 AM, Tommy Odom <notifications@github.com> wrote:\n> \n> I would add a custom function on the prototype of the resource that returns this.$url(''approve_membership')\n> \n> > On Feb 14, 2016, at 11:18 PM, vhilly <notifications@github.com> wrote:\n> > \n> > Let's say I have the following rails route..\n> > \n> > resources :members do\n> > member do \n> > get 'approve_membership'\n> > end\n> > end\n> > \n> > how do I send request to 'members/1234/approve_membership' ?\n> > \n> > —\n> > Reply to this email directly or view it on GitHub.\n> > \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/FineLinePrototyping/angularjs-rails-resource/issues/188#issuecomment-184470814>.\n> \n\n"}}