【发布时间】:2020-05-21 05:51:18
【问题描述】:
我开发了一个在http://localhost:3000/ 中运行良好的rails 5 应用程序
现在,我需要这个应用程序在 localhost:3000/example 中启动,并且链接通过这个新主机(例如 localhost:3000/example/users/new)。我在 localhost:3000/example 中获得了这些资产和 javascripts 工作正常:
config.root_path = '/example'
但链接仍会重定向到旧链接(例如,localhost:3000/users/new)。
有人知道我该如何解决吗?提前致谢
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-5 puma