Hello, 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 it like: Page.find_by_name("Welcome") 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? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.