I upgraded my application from Rails 2 to Rails 3 and ran into a
problem. In rails 2 I could use the english name of the record to find
even though the user chose German as the language (which of course
showed the German welcome page.
Eversince I switched to Rails 3 (default_locale still :en) I can’t find
anything by giving the English name which sucks cause apparently when
the user uses German it’d need to use find_by_name(“Willkommen”) but
when the user uses English it’d need to use find_by_name(“Welcome”).
I don’t really know the id of each page so I can’t use that. How can I
solve this problem?