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.
如何在子目录 /blog 中的现有 Rails 应用程序上安装Publify ?我正在运行rails 3.2。任何人都可以帮忙吗?或者至少指出我正确的方向?谢谢!
有人问过类似的问题,但从未在这里回答。
在执行以下步骤之前,您应该知道将有两个应用程序:您的主应用程序和发布应用程序。所以两者都应该在不同的端口上运行。
在您的视图中,只需编写此脚本,该脚本会将您从主应用程序重定向到通过 link_to 方法在 localhost:3000 上运行的发布。
现在您可以使用发布。