Private method `chomp' called for nil:NilClass

Hi Friends,

       I'm using rails 2.0.2 in my application, While create or

migrate database I am getting the following error

[email protected]:~/giftgenius$ rake db:migrate --trace
rake aborted!
private method chomp' called for nil:NilClass /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/1.8/logger.rb:174 /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rails-2.0.2/lib/initializer.rb:1 /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /home/hp/giftgenius/config/boot.rb:54:inload_initializer’
/home/hp/giftgenius/config/boot.rb:39:in run' /home/hp/giftgenius/config/boot.rb:11:inboot!’
/home/hp/giftgenius/config/boot.rb:109
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
/home/hp/giftgenius/Rakefile:4
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
load' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:inload_rakefile’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:495:in
[email protected]:~/giftgenius$ rake db:migrate --trace rake aborted! private methodchomp’ called for nil:NilClass
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/1.8/logger.rb:174
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rails-2.0.2/lib/initializer.rb:1
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
/home/hp/giftgenius/config/boot.rb:54:in load_initializer' /home/hp/giftgenius/config/boot.rb:39:inrun’
/home/hp/giftgenius/config/boot.rb:11:in boot!' /home/hp/giftgenius/config/boot.rb:109 /home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /home/hp/giftgenius/Rakefile:4 /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:inload’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
load_rakefile' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:495:inraw_load_rakefile’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:78:in
load_rakefile' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:77:in
load_rakefile' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:61:inrun’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
standard_exception_handling' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:59:inrun’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/bin/rake:32
/home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19:in load' /home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19 d_rakefile' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:78:inload_rakefile’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
standard_exception_handling' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:77:inload_rakefile’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:61:in
run' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling’
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:59:in
run' /home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/bin/rake:32 /home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19:inload’
/home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19

While running script/server also I’m getting the same error…

Anyone please help me out of this issue…

Thanks in Advance.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs