Displaying 1 result from an estimated 1 matches for "glaciali".
Did you mean:
glacial
2011 Apr 21
1
Rails 3 Foreign Domain routing - cannot get this to work!
...to add their own domain name so their homepage now can be
joeshmoe.com. I know this is possible in rails w/ plugins like
subdomainfu and w/out plugins in rails3. I''ve searched countless websites
on the subject and I''m attempting to build an app based on this example:
http://glacialis.postmodo.com/
so, as in this example, I''ve created lib/personalized_domain.rb
[code]
# lib/personalized_domain.rb
class PersonalizedDomain
def self.matches?(request)
case request.host
when ''www.#{APP_CONFIG[:domain]}'', ''#{APP_CONFIG[:domain]}'...