0
在下面的链接中包含子域但不是。任何人都可以解释我如何做到这一点?link_to中没有子域
<%= link_to(t('email.edit_cancel_link'),edit_sub_url(key: @subscriber.ticketcode))%>
这将返回 http://something.com/edit_sub?key=4sC3pnRIi5OP3I8wVwnhLw 而不是 http://subdomain.something.com/edit_sub?key=4sC3pnRIi5OP3I8wVwnhLw
感谢大卫
也不管用。谢谢 – diedaaf
你是如何配置你的应用程序的'subdomain'的? – rony36