I have a Rails 3.2.13 application that has been localized for English and French. When I first localized the application I was using the routing-filter gem. When I started working on a Rails 4.0.0 application I attempted to use the 4.0 beta version of the gem but could not get it to work. I decided to rewrite the routing of my Rails 3.2.13 applications to use the built-in I18n routing functionality. My applications use custom error pages using Self.routes. Everything in my application is working properly except for the custom error pages. For example if I get a 404 error instead of the correct custom error page for the locale displaying it appears that the locale value is changed to 404 and attempts to display the landing page looking for translations for locale 404.
I have done a lot of web searching since yesterday but have not found any examples of how to do this using I18n. The 3.2.13 routing-filter gem took care of this.
Here is the link to Stack Overflow where I posted the question. It includes details of exactly what is happening and the code I'm attempting to execute.
Any help would be appreciated. I will keep looking.