在我们的应用程序中,我们将一些视图(.erb 文件)存储在 public/custom_themes/{user}/ 文件夹中。我们尝试将路径 RAILS_ROOT 添加到view_paths
并指定/custom_themes/{user}/theme.erb
in render :layout
。在development
环境中它工作正常,但在production
找到视图需要很长时间。它确实找到了,但需要大约 2-4 分钟才能找到并渲染。
请指教。
谢谢,
伊姆兰
在我们的应用程序中,我们将一些视图(.erb 文件)存储在 public/custom_themes/{user}/ 文件夹中。我们尝试将路径 RAILS_ROOT 添加到view_paths
并指定/custom_themes/{user}/theme.erb
in render :layout
。在development
环境中它工作正常,但在production
找到视图需要很长时间。它确实找到了,但需要大约 2-4 分钟才能找到并渲染。
请指教。
谢谢,
伊姆兰