On Fri, Dec 12, 2008 at 5:08 PM, Richard Schneeman <thedicks...@gmail.com> wrote: > Is it possible to read the URL that someone uses to access your site. > For example: I own, www.english.com and www.chinese.com and only have > one rails site. Is it possible, when a user accessing my rails site from > english.com is automatically set to use my English I18n, as well as a > separate style sheet, where as www.chinese.com would utilize chinese > I18n ??
Hi Richard, yes it's possible. I have a rails app that can be accessed from various domains, what I do is check request.host to get the domain. -- Jaime Iniesta http://jaimeiniesta.com http://www.workingwithrails.com/person/6722-jaime-iniesta _______________________________________________ Railsi18n-discussion mailing list Railsi18n-discussion@rubyforge.org http://rubyforge.org/mailman/listinfo/railsi18n-discussion