{"action":"created","issue":{"url":"https://api.github.com/repos/bploetz/versionist/issues/74","repository_url":"https://api.github.com/repos/bploetz/versionist","labels_url":"https://api.github.com/repos/bploetz/versionist/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/bploetz/versionist/issues/74/comments","events_url":"https://api.github.com/repos/bploetz/versionist/issues/74/events","html_url":"https://github.com/bploetz/versionist/issues/74","id":143541771,"number":74,"title":"Support for Rails 5","user":{"login":"derekprior","id":152152,"avatar_url":"https://avatars.githubusercontent.com/u/152152?v=3","gravatar_id":"","url":"https://api.github.com/users/derekprior","html_url":"https://github.com/derekprior","followers_url":"https://api.github.com/users/derekprior/followers","following_url":"https://api.github.com/users/derekprior/following{/other_user}","gists_url":"https://api.github.com/users/derekprior/gists{/gist_id}","starred_url":"https://api.github.com/users/derekprior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekprior/subscriptions","organizations_url":"https://api.github.com/users/derekprior/orgs","repos_url":"https://api.github.com/users/derekprior/repos","events_url":"https://api.github.com/users/derekprior/events{/privacy}","received_events_url":"https://api.github.com/users/derekprior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-25T16:59:43Z","updated_at":"2016-03-26T21:51:09Z","closed_at":null,"body":"The following declaration works with Rails 4.2.x:\r\n\r\n```\r\n  namespace :api do\r\n    api_version(\r\n      module: \"V1\",\r\n      header: {\r\n        name: \"Accept\",\r\n        value: \"application/vnd.hub+json; version=1\",\r\n      },\r\n      defaults: { format: :json },\r\n    ) do\r\n      resources :people\r\n    end\r\n  end\r\n```\r\n\r\nWhen running with Rails 5, we get:\r\n\r\n```\r\nArgumentError: 'api/V1/people' is not a supported controller name. This can lead to potential routing problems. See http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use\r\n```"},"comment":{"url":"https://api.github.com/repos/bploetz/versionist/issues/comments/201936630","html_url":"https://github.com/bploetz/versionist/issues/74#issuecomment-201936630","issue_url":"https://api.github.com/repos/bploetz/versionist/issues/74","id":201936630,"user":{"login":"johnrees","id":601961,"avatar_url":"https://avatars.githubusercontent.com/u/601961?v=3","gravatar_id":"","url":"https://api.github.com/users/johnrees","html_url":"https://github.com/johnrees","followers_url":"https://api.github.com/users/johnrees/followers","following_url":"https://api.github.com/users/johnrees/following{/other_user}","gists_url":"https://api.github.com/users/johnrees/gists{/gist_id}","starred_url":"https://api.github.com/users/johnrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnrees/subscriptions","organizations_url":"https://api.github.com/users/johnrees/orgs","repos_url":"https://api.github.com/users/johnrees/repos","events_url":"https://api.github.com/users/johnrees/events{/privacy}","received_events_url":"https://api.github.com/users/johnrees/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T21:51:09Z","updated_at":"2016-03-26T21:51:09Z","body":"I just ran into this and temporarily fixed it using a lowercase module name `module: \"v1\"`"}}