On Jul 9, 2010, at 1:28 AM, siva wrote: > Hi > > Thanks in advance for helping me. I got the following error: > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/whiny_nil.rb:52:in `method_missing': undefined method > `strip' for nil:NilClass (NoMethodError) > from /usr/local/lib/ruby/1.8/net/http.rb:1142:in > `initialize_http_header' > from /usr/local/lib/ruby/1.8/net/http.rb:1140:in `each' > from /usr/local/lib/ruby/1.8/net/http.rb:1140:in > `initialize_http_header' > from /usr/local/lib/ruby/1.8/net/http.rb:1472:in `initialize' > from /usr/local/lib/ruby/1.8/net/http.rb:1588:in `initialize' > from /usr/local/lib/ruby/1.8/net/http.rb:772:in `new' > from /usr/local/lib/ruby/1.8/net/http.rb:772:in `get' > from /usr/local/lib/ruby/gems/1.8/gems/cloudfiles-1.4.7/lib/ > cloudfiles/authentication.rb:23:in `initialize' > from /usr/local/lib/ruby/gems/1.8/gems/cloudfiles-1.4.7/lib/ > cloudfiles/connection.rb:70:in `new' > from /usr/local/lib/ruby/gems/1.8/gems/cloudfiles-1.4.7/lib/ > cloudfiles/connection.rb:70:in `initialize' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:306:in `new' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:306:in `cloudfiles' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:310:in `create_container' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:316:in > `cloudfiles_container' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:295:in `extended' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:290:in `instance_eval' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/storage.rb:290:in `extended' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/attachment.rb:334:in `extend' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/attachment.rb:334:in > `initialize_storage' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip/attachment.rb:54:in `initialize' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip.rb:359:in `new' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip.rb:359:in `attachment_for' > from /usr/local/lib/ruby/gems/1.8/gems/paperclip- > cloudfiles-2.3.2/lib/paperclip.rb:257:in `avatar' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/validations.rb:466:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/validations.rb:466:in `validates_each' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/validations.rb:465:in `each' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/validations.rb:465:in `validates_each' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:182:in `call' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:182:in `evaluate_method' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:166:in `call' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:90:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:90:in `each' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:90:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:90:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/ > active_support/callbacks.rb:276:in `run_callbacks' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/validations.rb:1098:in `valid_without_callbacks?' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/callbacks.rb:315:in `valid?' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/validations.rb:1077:in `save_without_dirty' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/dirty.rb:79:in `save_without_transactions' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:229:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:229:in > `with_transaction_returning_status' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/connection_adapters/abstract/database_statements.rb: > 136:in `transaction' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:182:in `transaction' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:228:in > `with_transaction_returning_status' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:196:in `save' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:208:in `rollback_active_record_state!' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/transactions.rb:196:in `save' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ > active_record/base.rb:723:in `create' > from ./spec/models/user_spec.rb:57 > from ./spec/models/user_spec.rb:56:in `each' > from ./spec/models/user_spec.rb:56 > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_methods.rb:183:in `module_eval' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_methods.rb:183:in `subclass' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_methods.rb:55:in `describe' > from ./spec/models/user_spec.rb:49 > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_methods.rb:183:in `module_eval' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_methods.rb:183:in `subclass' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_methods.rb:55:in `describe' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > example/example_group_factory.rb:31:in `create_example_group' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > dsl/main.rb:28:in `describe' > from ./spec/models/user_spec.rb:37 > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > runner/example_group_runner.rb:15:in `load' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > runner/example_group_runner.rb:15:in `load_files' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > runner/example_group_runner.rb:14:in `each' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > runner/example_group_runner.rb:14:in `load_files' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > runner/options.rb:133:in `run_examples' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/ > runner/command_line.rb:9:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5 > from /usr/local/bin/spec:19:in `load' > from /usr/local/bin/spec:19 > > I didn't understand what is the root cause for this? So could > please help me to get rid out this problem. It's urgent. Once again > thanks for all...
Please post some code and specs - can't tell much from the backtrace. Also, I'd recommend using gist or pastie - very difficult to read that backtrace in an email given the formatting. > With Regards > Siva > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users