{"action":"created","issue":{"url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/issues/13","labels_url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/issues/13/comments","events_url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/issues/13/events","html_url":"https://github.com/kairat-zhumaniyazov/sof/pull/13","id":121919513,"number":13,"title":"Lesson15","user":{"login":"kairat-zhumaniyazov","id":5947434,"avatar_url":"https://avatars.githubusercontent.com/u/5947434?v=3","gravatar_id":"","url":"https://api.github.com/users/kairat-zhumaniyazov","html_url":"https://github.com/kairat-zhumaniyazov","followers_url":"https://api.github.com/users/kairat-zhumaniyazov/followers","following_url":"https://api.github.com/users/kairat-zhumaniyazov/following{/other_user}","gists_url":"https://api.github.com/users/kairat-zhumaniyazov/gists{/gist_id}","starred_url":"https://api.github.com/users/kairat-zhumaniyazov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kairat-zhumaniyazov/subscriptions","organizations_url":"https://api.github.com/users/kairat-zhumaniyazov/orgs","repos_url":"https://api.github.com/users/kairat-zhumaniyazov/repos","events_url":"https://api.github.com/users/kairat-zhumaniyazov/events{/privacy}","received_events_url":"https://api.github.com/users/kairat-zhumaniyazov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-13T13:31:24Z","updated_at":"2015-12-14T12:28:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/pulls/13","html_url":"https://github.com/kairat-zhumaniyazov/sof/pull/13","diff_url":"https://github.com/kairat-zhumaniyazov/sof/pull/13.diff","patch_url":"https://github.com/kairat-zhumaniyazov/sof/pull/13.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/issues/comments/164425115","html_url":"https://github.com/kairat-zhumaniyazov/sof/pull/13#issuecomment-164425115","issue_url":"https://api.github.com/repos/kairat-zhumaniyazov/sof/issues/13","id":164425115,"user":{"login":"kairat-zhumaniyazov","id":5947434,"avatar_url":"https://avatars.githubusercontent.com/u/5947434?v=3","gravatar_id":"","url":"https://api.github.com/users/kairat-zhumaniyazov","html_url":"https://github.com/kairat-zhumaniyazov","followers_url":"https://api.github.com/users/kairat-zhumaniyazov/followers","following_url":"https://api.github.com/users/kairat-zhumaniyazov/following{/other_user}","gists_url":"https://api.github.com/users/kairat-zhumaniyazov/gists{/gist_id}","starred_url":"https://api.github.com/users/kairat-zhumaniyazov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kairat-zhumaniyazov/subscriptions","organizations_url":"https://api.github.com/users/kairat-zhumaniyazov/orgs","repos_url":"https://api.github.com/users/kairat-zhumaniyazov/repos","events_url":"https://api.github.com/users/kairat-zhumaniyazov/events{/privacy}","received_events_url":"https://api.github.com/users/kairat-zhumaniyazov/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T12:28:45Z","updated_at":"2015-12-14T12:28:45Z","body":"@palkan , если писать respond_with @answer возникает такая ошибка:\r\nFailure/Error: post :create, question_id: question, answer: attributes_for(:answer), format: :json, access_token: access_token.token\r\n     NoMethodError:\r\n       undefined method `answer_url' for #<Api::V1::AnswersController:0x00000007c9d950>\r\n\r\nесли же respond_with :api, :v1, @answer\r\nFailure/Error: post :create, question_id: question, answer: attributes_for(:answer), format: :json, access_token: access_token.token\r\n     NoMethodError:\r\n       undefined method `api_v1_answer_url' for #<Api::V1::AnswersController:0x00000005e820b0>\r\n\r\nИсправил Api::V1::AnswersController#show. Пришлось добавить сортировку в модель, почему до этого не возникало такой проблемы, но сортировка не правильно отрабатывало в тетсах. (в ручную если проверять все нормально)\r\n\r\nЯ полностью запустался =("}}