模型不重装的发展滑轨(3.2.11)项目 [英] Models not reloading in development in Rails (3.2.11) project

查看:95
本文介绍了模型不重装的发展滑轨(3.2.11)项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索相当广泛的任何意见,还没有找到它的话,这里有云:

I've searched fairly extensively for any advice and have yet to find it so, here goes:

我的Rails项目失败时自动重新加载在发展模式。重装他们目前需要一个完整的服务器重新启动。

My Rails project fails to automatically reload models in development. Reloading them currently requires a full server restart.

previous实例已经涉及到放置在模型目录中的非ActiveRecord的文件,虽然这不是我的情况。

Previous instances of this issue have been related to non-activerecord files placed in the models directory, though this is not the case for me.

config.cache_classes 已正确设置为在我的开发配置文件。视图和控制器重装没有问题。

config.cache_classes is properly set to false in my development config file. Views and controllers reload without issue.

我所有的导轨组件是3.2.11版本。我曾尝试禁用所有的我的具体发展宝石无济于事。这显然​​不是一个生产力塞,但是这是一个烦恼。任何帮助AP preciated,我很乐意为您提供更多信息,如果这会有所帮助,虽然我没有使用任何奇异的宝石。

All of my rails components are version 3.2.11. I have tried disabling all of my development-specific gems to no avail. This is obviously not a productivity stopper, but it is quite an annoyance. Any help appreciated and I am happy to provide more information if it would help, though I am not using any exotic gems.

谢谢!

推荐答案

一些可能性:

  1. 您是不是真的对研究与开发的环境中运行
  2. 您正在改变命名空间中的模式,并没有告诉导轨自动加载路径
  3. 您正在改变包括在你的类文件,而不是你的直接类(或任何的多种变体的这个)
  4. 您正在缓存类

注意事项:

  1. 在事情都有可能根据Web服务器使用的是修改

这篇关于模型不重装的发展滑轨(3.2.11)项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆