{"action":"created","issue":{"url":"https://api.github.com/repos/enriclluelles/route_translator/issues/110","repository_url":"https://api.github.com/repos/enriclluelles/route_translator","labels_url":"https://api.github.com/repos/enriclluelles/route_translator/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/enriclluelles/route_translator/issues/110/comments","events_url":"https://api.github.com/repos/enriclluelles/route_translator/issues/110/events","html_url":"https://github.com/enriclluelles/route_translator/issues/110","id":100867514,"number":110,"title":"where is the generate_unnamed_unlocalized_routes redirect?","user":{"login":"AlexEscalante","id":656454,"avatar_url":"https://avatars.githubusercontent.com/u/656454?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexEscalante","html_url":"https://github.com/AlexEscalante","followers_url":"https://api.github.com/users/AlexEscalante/followers","following_url":"https://api.github.com/users/AlexEscalante/following{/other_user}","gists_url":"https://api.github.com/users/AlexEscalante/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexEscalante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexEscalante/subscriptions","organizations_url":"https://api.github.com/users/AlexEscalante/orgs","repos_url":"https://api.github.com/users/AlexEscalante/repos","events_url":"https://api.github.com/users/AlexEscalante/events{/privacy}","received_events_url":"https://api.github.com/users/AlexEscalante/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/enriclluelles/route_translator/labels/help%20wanted","name":"help wanted","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-13T20:55:52Z","updated_at":"2016-02-06T08:12:49Z","closed_at":null,"body":"The documentation says you get a redirect when you set this config to true:\r\n\r\n> **generate_unnamed_unlocalized_routes** Set this option to true to add the behavior of force_locale, but with a named default route which behaves as if generate_unlocalized_routes was true. **root_path will redirect** to /en or /es depending on the value of I18n.locale. Defaults to false.\r\n\r\n… but I am not getting any redirect?\r\n\r\nAm I missing something here?"},"comment":{"url":"https://api.github.com/repos/enriclluelles/route_translator/issues/comments/180717623","html_url":"https://github.com/enriclluelles/route_translator/issues/110#issuecomment-180717623","issue_url":"https://api.github.com/repos/enriclluelles/route_translator/issues/110","id":180717623,"user":{"login":"patricklindsay","id":7923681,"avatar_url":"https://avatars.githubusercontent.com/u/7923681?v=3","gravatar_id":"","url":"https://api.github.com/users/patricklindsay","html_url":"https://github.com/patricklindsay","followers_url":"https://api.github.com/users/patricklindsay/followers","following_url":"https://api.github.com/users/patricklindsay/following{/other_user}","gists_url":"https://api.github.com/users/patricklindsay/gists{/gist_id}","starred_url":"https://api.github.com/users/patricklindsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patricklindsay/subscriptions","organizations_url":"https://api.github.com/users/patricklindsay/orgs","repos_url":"https://api.github.com/users/patricklindsay/repos","events_url":"https://api.github.com/users/patricklindsay/events{/privacy}","received_events_url":"https://api.github.com/users/patricklindsay/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T08:12:49Z","updated_at":"2016-02-06T08:12:49Z","body":"@AlexEscalante  Your snippet doesn't seem to work I get:\r\n```\r\nundefined local variable or method `http_accept_language'\r\n```\r\n\r\nThe gem is great but I haven't been able to work out how to enforce always having /locale/ prepend all my paths. I want the app to 404 (or at least redirect to default locale) if paths are entered without an appropriate locale.\r\n\r\nAny ideas?"}}