我的部分名称缓存在哪里?

Where is my partial name getting cached?

我正在尝试进行一些重构,但我无法在不从调用模板中获取缺少模板错误的情况下移动我的部分。我重命名并移动了部分,然后在调用模板中,我更改为:

= render 'slot_fields', f: builder

收件人:

= render 'slots/slot_create_fields', f: builder

但是我得到错误:

Missing partial sheets/_slot_fields, application/_slot_fields

我尝试重新启动 Rails 服务器和 cntl-F5 以重新加载页面,但我卡住了。预先感谢您的帮助。

Rails 模板默认不缓存。 Rails Asset Pipeline 可能会预编译您的模板。 尝试使用以下

清理所有预编译资产

rake assets:clobber

感谢大家的帮助,但我刚刚弄明白了。我指的是其他地方的 partiallink_to 助手)。