{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/19648","labels_url":"https://api.github.com/repos/rails/rails/issues/19648/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/19648/comments","events_url":"https://api.github.com/repos/rails/rails/issues/19648/events","html_url":"https://github.com/rails/rails/issues/19648","id":66322067,"number":19648,"title":"[Rails Guide Error] - i18n Section 2.4","user":{"login":"yuchunc","id":1594682,"avatar_url":"https://avatars.githubusercontent.com/u/1594682?v=3","gravatar_id":"","url":"https://api.github.com/users/yuchunc","html_url":"https://github.com/yuchunc","followers_url":"https://api.github.com/users/yuchunc/followers","following_url":"https://api.github.com/users/yuchunc/following{/other_user}","gists_url":"https://api.github.com/users/yuchunc/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchunc/subscriptions","organizations_url":"https://api.github.com/users/yuchunc/orgs","repos_url":"https://api.github.com/users/yuchunc/repos","events_url":"https://api.github.com/users/yuchunc/events{/privacy}","received_events_url":"https://api.github.com/users/yuchunc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-04T13:46:44Z","updated_at":"2015-04-05T04:43:41Z","closed_at":"2015-04-05T04:43:41Z","body":"Hi, I think I spotted a small error on the guide, but couldn't find the right place to submit a change.\r\n\r\nUnder the page about [i18n section 2.4](http://guides.rubyonrails.org/i18n.html#setting-the-locale-from-the-domain-name), the last code container. \r\n\r\n    link_to(\"Deutsch\", \"#{APP_CONFIG[:deutsch_website_url]}#{request.env['REQUEST_URI']}\")\r\n\r\n`request.env['REQUEST_URI']` actually produced the full url instead of just the path. It should be replace with `request.evn['PATH_INFO']`, and look something like this.\r\n\r\n    link_to(\"Deutsch\", \"#{APP_CONFIG[:deutsch_website_url]}#{request.env['PATH_INFO']}\")\r\n\r\nCheers."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/89715995","html_url":"https://github.com/rails/rails/issues/19648#issuecomment-89715995","issue_url":"https://api.github.com/repos/rails/rails/issues/19648","id":89715995,"user":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T04:43:41Z","updated_at":"2015-04-05T04:43:41Z","body":"merged https://github.com/rails/rails/pull/19650, which fixes this.\r\nThanks @meinac for the PR, and @yuchunc for spotting the issue.\r\n:heart: "}}