yamldb / yaml_db

Rails plugin for a database-independent dump format, data.yml .......... Seeking new maintainers! See https://github.com/yamldb/yaml_db/issues/143
https://rubygems.org/gems/yaml_db
949 stars 200 forks source link

NameError: undefined local variable or method `config' for main:Object #66

Closed yanfosec closed 10 years ago

yanfosec commented 10 years ago

When I try to dump out my MySQL database, I get the following error:

NameError: undefined local variable or method `config' for main:Object
/Users/ykravchenko/Projects/appsec/config/application.rb:9:in `<top (required)>'
/Users/ykravchenko/Projects/appsec/Rakefile:4:in `require'
/Users/ykravchenko/Projects/appsec/Rakefile:4:in `<top (required)>'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/bin/rake:23:in `load'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/bin/rake:23:in `<main>'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/ykravchenko/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
dnrce commented 10 years ago

@yanfosec Is this still an issue with yaml_db 0.3.0?

dnrce commented 10 years ago

This looks suspiciously like a Rails configuration error to me, not a yaml_db issue. @yanfosec if you can reproduce this, please post an update and I'll reopen the issue.