Railsã§ãµããã¡ã¤ã³ã使ãéã®æ³¨æç¹ã§ãã RailsCastã«æ¸ãã¦ããéãã«è¨å®ããã°subdomainã使ããã®ã§ãããRailsã®ããã©ã«ãã§ã¯ã.comã.orgãªã©ã®gTLDãåæã«è¨å®ããã¦ãã¾ãã ã¤ã¾ããexample.comã®ãããªå ´åã§ã¯ ja.example.com en.example.com ã®ããã«ãã¾ãããã®ã§ãããexample.co.jpã®ãããªå ´åã ja.co.jp en.co.jp ã®ããã«ãªã£ã¦ãã¾ã£ãããã¾ãã ãã®ãããã¯ãaction_dispatch/http/url.rbã§å®ç¾©ããã¦ããã以ä¸ã®ãããªå®è£ ã«ãªã£ã¦ãã¾ãã module ActionDispatch module Http module URL mattr_accessor :tld_length self.tld_length = 1 class << self d
{{#tags}}- {{label}}
{{/tags}}