PDA

Просмотр полной версии : Вопрос по RoR !


043nKRuT0y
05.05.2010, 16:31
Помогите решить проблему :
В общем решил попробовать написать приложение на RoR для открытия sms gateway! Выбрал гем clickatell, так как там более менее документировано .....
Короче при запуске сервера и переходе на нужное представление выводит ошибку :

ninitialized constant CLICKATELL_CONFIG
RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/RoR/InstantRails-1.3-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing' C:/RoR/InstantRails-1.3-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' C:/RoR/InstantRails-1.3-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing' #{RAILS_ROOT}/app/controllers/sms_controller.rb:3:in `create' This error occured while loading the following files: clickatell_config.rb

Хотя переменная CLICKATELL_CONFIG определена в
\config\environments\production.rb
CLICKATELL_CONFIG = YAML.load(File.open(File.join(RAILS_ROOT, 'config', 'clickatell.yml')))

В чем может быто проблема и как её решить !?

043nKRuT0y
05.05.2010, 18:28
вообще кто то пробовал работать с clickatell либой на RoR!?