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.
出于某种原因,在我的本地环境中,每次更改模型时,我都必须重新启动控制台而不是重新加载它。我在 development.rb 中将 cache_classes 设置为 false ...为什么会发生这种情况?
正如这个问题所建议的,您reload!在 rails 控制台中输入。
reload!