Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找为用户设置自定义域。就像 Tumblr 一样。
我理解用户必须将他们的 A 记录指向一个 IP 地址。我在这里找到了一些信息:Rails App 中的自定义域
有人可以给我一个 Heroku/Rails 3 设置的例子吗?甚至可能吗?
如果您设置通配符 DNS 指向您的主应用程序,您可以使用:subdomaininconfig/routes.rb来处理您的业务逻辑。
:subdomain
config/routes.rb