{"action":"created","issue":{"url":"https://api.github.com/repos/antillas21/ajax-datatables-rails/issues/93","labels_url":"https://api.github.com/repos/antillas21/ajax-datatables-rails/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/antillas21/ajax-datatables-rails/issues/93/comments","events_url":"https://api.github.com/repos/antillas21/ajax-datatables-rails/issues/93/events","html_url":"https://github.com/antillas21/ajax-datatables-rails/issues/93","id":65500361,"number":93,"title":"Any way to pass parameter to datatable?","user":{"login":"inyerade","id":938614,"avatar_url":"https://avatars.githubusercontent.com/u/938614?v=3","gravatar_id":"","url":"https://api.github.com/users/inyerade","html_url":"https://github.com/inyerade","followers_url":"https://api.github.com/users/inyerade/followers","following_url":"https://api.github.com/users/inyerade/following{/other_user}","gists_url":"https://api.github.com/users/inyerade/gists{/gist_id}","starred_url":"https://api.github.com/users/inyerade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyerade/subscriptions","organizations_url":"https://api.github.com/users/inyerade/orgs","repos_url":"https://api.github.com/users/inyerade/repos","events_url":"https://api.github.com/users/inyerade/events{/privacy}","received_events_url":"https://api.github.com/users/inyerade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-31T17:07:13Z","updated_at":"2015-03-31T17:21:36Z","closed_at":null,"body":" in the function `get_raw_record` I want to do a query acording to the user session.\r\n\r\nI'm using Devise and in the where clause I want to add `user_id: current_user.id`\r\n\r\nI put the line `puts current_user` in my datatable file into get_raw_record function and get `undefined local variable or method `current_user'`\r\n\r\nI think that pass an argument in the call of datatable element in the controller can be a possible solution.\r\n"},"comment":{"url":"https://api.github.com/repos/antillas21/ajax-datatables-rails/issues/comments/88177355","html_url":"https://github.com/antillas21/ajax-datatables-rails/issues/93#issuecomment-88177355","issue_url":"https://api.github.com/repos/antillas21/ajax-datatables-rails/issues/93","id":88177355,"user":{"login":"antillas21","id":333671,"avatar_url":"https://avatars.githubusercontent.com/u/333671?v=3","gravatar_id":"","url":"https://api.github.com/users/antillas21","html_url":"https://github.com/antillas21","followers_url":"https://api.github.com/users/antillas21/followers","following_url":"https://api.github.com/users/antillas21/following{/other_user}","gists_url":"https://api.github.com/users/antillas21/gists{/gist_id}","starred_url":"https://api.github.com/users/antillas21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antillas21/subscriptions","organizations_url":"https://api.github.com/users/antillas21/orgs","repos_url":"https://api.github.com/users/antillas21/repos","events_url":"https://api.github.com/users/antillas21/events{/privacy}","received_events_url":"https://api.github.com/users/antillas21/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T17:21:36Z","updated_at":"2015-03-31T17:21:36Z","body":"Ohh... also don't forget to update the controller code as well ;)"}}