{"action":"created","issue":{"url":"https://api.github.com/repos/drewolson/scrivener/issues/14","labels_url":"https://api.github.com/repos/drewolson/scrivener/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/drewolson/scrivener/issues/14/comments","events_url":"https://api.github.com/repos/drewolson/scrivener/issues/14/events","html_url":"https://github.com/drewolson/scrivener/issues/14","id":109634411,"number":14,"title":"undefined function: AppName.Repo.paginate/2","user":{"login":"zaidakram","id":1079660,"avatar_url":"https://avatars.githubusercontent.com/u/1079660?v=3","gravatar_id":"","url":"https://api.github.com/users/zaidakram","html_url":"https://github.com/zaidakram","followers_url":"https://api.github.com/users/zaidakram/followers","following_url":"https://api.github.com/users/zaidakram/following{/other_user}","gists_url":"https://api.github.com/users/zaidakram/gists{/gist_id}","starred_url":"https://api.github.com/users/zaidakram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaidakram/subscriptions","organizations_url":"https://api.github.com/users/zaidakram/orgs","repos_url":"https://api.github.com/users/zaidakram/repos","events_url":"https://api.github.com/users/zaidakram/events{/privacy}","received_events_url":"https://api.github.com/users/zaidakram/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-03T17:17:18Z","updated_at":"2015-10-06T10:52:06Z","closed_at":"2015-10-06T10:52:05Z","body":"My Application's Repo looks like this\r\n``` Elixir\r\ndefmodule AppName.Repo do\r\n  use Ecto.Repo, otp_app: :app_name\r\n  use Scrivener, page_size: 20\r\nend\r\n```\r\n\r\nMy index action looks like this...\r\n\r\n``` Elixir\r\ndef index(conn, params) do\r\n  words = from(w in Word, order_by: [asc: :abc_id], preload: [:languages]) \r\n    |> Repo.paginate(params)\r\n  render(conn, \"index.json\",\r\n    %{\r\n      words: words.entries,\r\n      current_page: words.page_number,\r\n      total_pages: words.total_pages,\r\n      per_page: words.page_size\r\n    }\r\n  )\r\nend\r\n```\r\nVersions of other notable deps in mix file.\r\n \r\n``` Elixir\r\n  scrivener 1.0.0 \r\n  phoenix 1.0.2 \r\n  phoenix_ecto 1.2.0\r\n  ecto 1.0.3\r\n```\r\n\r\nP.S: Scrivener.paginate/2 works with %Scrivener.Config.\r\n"},"comment":{"url":"https://api.github.com/repos/drewolson/scrivener/issues/comments/145820387","html_url":"https://github.com/drewolson/scrivener/issues/14#issuecomment-145820387","issue_url":"https://api.github.com/repos/drewolson/scrivener/issues/14","id":145820387,"user":{"login":"zaidakram","id":1079660,"avatar_url":"https://avatars.githubusercontent.com/u/1079660?v=3","gravatar_id":"","url":"https://api.github.com/users/zaidakram","html_url":"https://github.com/zaidakram","followers_url":"https://api.github.com/users/zaidakram/followers","following_url":"https://api.github.com/users/zaidakram/following{/other_user}","gists_url":"https://api.github.com/users/zaidakram/gists{/gist_id}","starred_url":"https://api.github.com/users/zaidakram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaidakram/subscriptions","organizations_url":"https://api.github.com/users/zaidakram/orgs","repos_url":"https://api.github.com/users/zaidakram/repos","events_url":"https://api.github.com/users/zaidakram/events{/privacy}","received_events_url":"https://api.github.com/users/zaidakram/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T10:52:05Z","updated_at":"2015-10-06T10:52:05Z","body":"And I've no idea why it has started working now. :angry: "}}