SORU
25 Mart 2011, Cuma


Konsol raylar: doldurun! model dosyalarında değişiklik yansıtan değil mi? Olası sebep ne olabilir?

İyi çalışıyordu daha önce. Biraz config oynuyorum. Çok değiştim olabilir bazı config bilmeden.

burada çevre/kalkınma config.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 = 'UTC'

Burada uygulamanın config bölümü.rb

 # Configure the default encoding used in templates for Ruby 1.9.
 config.encoding = "utf-8"

 # Configure sensitive parameters which will be filtered from the log file.
 config.filter_parameters  = [:password]

 config.active_record.schema_format = :sql

yeniden çalıştırdığımda! iade konsol doğru raylar

CEVAP
25 Mart 2011, Cuma


reload! sadece son kod çevre konsolu yeniden yükler. Yeniden başlatma mevcut nesneler değildir.

Bu ise zaten herhangi bir nesne örneği varsa, onların niteliklerini updated olmaz demektir. Eğer yeni bir nesne oluşturursanız, ancak, öznitelikleri yeniden kod yansıtır. more here

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • akalyne

    akalyne

    13 Mayıs 2009
  • Ricardo Cerqueira

    Ricardo Cerq

    28 Mayıs 2008
  • wwjoshdu

    wwjoshdu

    18 ŞUBAT 2011