config не определена в конфигурационных файлах среды

Когда я запускаю свой сервер локально, я получаю следующее уведомление:

please set config.active_support.deprecation to :log at config/environments/development.rb

Когда я добавляю в config / environment / development.rb

config.active_support.deprecation = :log 

Я получил:

undefined local variable or method `config' for main:Object (NameError)

моя среда: Rails 3.0.1 Ruby 1.8.7 Ubuntu 10.04

Файл Development.rb

# Settings specified here will take precedence over those in config/environment.rb

# In the development environment your application's code is reloaded on
# every request.  This slows down response time but is perfect for development
# since you don't have to restart the webserver when you make code changes.
config.active_support.deprecation = :log
config.cache_classes = false

Ответы на вопрос(3)

Ваш ответ на вопрос