{"issue":{"user":{"id":143954,"login":"tjgillies","url":"https://api.github.com/users/tjgillies","avatar_url":"https://secure.gravatar.com/avatar/d76f53e4acf764b7a9c77cfb58493f00?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d76f53e4acf764b7a9c77cfb58493f00"},"milestone":null,"title":"Unable to retrieve format-specific version of a resource (e.g. /people/1471.json)","created_at":"2011-12-22T22:05:24Z","labels":[{"name":"bug","url":"https://api.github.com/repos/reidab/citizenry/labels/bug","color":"e64343"}],"updated_at":"2011-12-23T00:12:50Z","state":"open","id":2642391,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/reidab/citizenry/issues/61","closed_at":null,"body":"no .json resource \r\nhttp://epdx.org/people/1471.json","number":61,"url":"https://api.github.com/repos/reidab/citizenry/issues/61","comments":2,"assignee":null},"comment":{"user":{"id":15668,"login":"igal","url":"https://api.github.com/users/igal","avatar_url":"https://secure.gravatar.com/avatar/8644672cd24c2e156f1651e5310ec44a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8644672cd24c2e156f1651e5310ec44a"},"created_at":"2011-12-23T00:12:50Z","updated_at":"2011-12-23T00:12:50Z","id":3256638,"body":"Thanks for filing this report. I can confirm this is a problem for all our controllers, not just people. I've updated the title to clear this up.\r\n\r\nI'm certain that this feature used to work. I've reviewed our routes and the `respond_to` code declaring this functionality, and they look fine. We haven't touched the code declaring this in a long time, so I don't think we broke it. My theory is this is a problem caused by a newer version of Rails or `inherited_resources`.\r\n\r\nWhen I stepped through the code with a debugger, I found that requesting a format-specific path (e.g. `/foo/123.json`)  would cause the system to redirect to a generic path (e.g. `/foo/123`) before the controller's `show` action was called, so I can't even provide an easy workaround.\r\n\r\nIf someone has some time to dig through the `inherited_resources` library, I'd appreciate it. I'd recommend reading through it to figure out how it implements the `show` action and how this handles the `respond_to` information, because I believe the problem is there.","url":"https://api.github.com/repos/reidab/citizenry/issues/comments/3256638"},"action":"created"}