Rspec-method missing error

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 methodstrip’ 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:ineach’
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:ininitialize’
from /usr/local/lib/ruby/1.8/net/http.rb:1588:in initialize' from /usr/local/lib/ruby/1.8/net/http.rb:772:innew’
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:ininitialize’
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:ininitialize’
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:incloudfiles’
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:incloudfiles_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:ininstance_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:inextend’
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:ininitialize’
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:inattachment_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:insend’
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:ineach’
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:incall’
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:incall’
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:ineach’
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:inrun’
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:invalid_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:insave_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:insend’
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:intransaction’
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:inwith_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:inrollback_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:increate’
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:inmodule_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:indescribe’
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:insubclass’
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:increate_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:inload’
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:ineach’
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:inrun_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:inload’
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…

With Regards
Siva

On Jul 9, 2010, at 1:28 AM, siva wrote:

   from /usr/local/lib/ruby/1.8/net/http.rb:1140:in

cloudfiles/connection.rb:70:in initialize' cloudfiles-2.3.2/lib/paperclip/storage.rb:295:inextended’
cloudfiles-2.3.2/lib/paperclip/attachment.rb:54:in initialize' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/ active_support/callbacks.rb:90:inrun’
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/
active_record/transactions.rb:208:in rollback_active_record_state!' example/example_group_methods.rb:183:insubclass’
example/example_group_factory.rb:31:in create_example_group' runner/example_group_runner.rb:14:inload_files’
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.