相关疑难解决方法(0)

Rails控制台:重新加载!没有反映模型文件的变化?可能的原因是什么?

早些时候它工作正常.我一直在玩一点配置.所以我可能在不知不觉中改变了一些配置.

这是environment/development.rb的配置

  config.cache_classes = false

  # Log error messages when you accidentally call methods on nil.
  config.whiny_nils = true

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_view.debug_rjs             = true
  config.action_controller.perform_caching = false

  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = false

  # Print deprecation notices to the Rails logger
  config.active_support.deprecation = :log

  # Only use best-standards-support built into browsers
  config.action_dispatch.best_standards_support = :builtin

  # migration prefix with sequence #s
  config.active_record.timestamped_migrations = false

  #time zone
  config.time_zone …
Run Code Online (Sandbox Code Playgroud)

ruby config ruby-on-rails reload rails-console

93
推荐指数
2
解决办法
6万
查看次数

标签 统计

config ×1

rails-console ×1

reload ×1

ruby ×1

ruby-on-rails ×1