All pastes #816118 Raw Edit

Something

public text v1 · immutable
·published 2007-12-14 17:32 UTC
rendered paste body
## in specs:

3)
TypeError in 'OrderNotifier order confirmation should deliver one email'
can't convert nil into String
/Users/kyleh/projects/app/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `orig_render'
./spec/models/order_notifier_spec.rb:10:
script/spec:4:

## or from the console:

>>  OrderNotifier.create_order_confirmed(Order.find(1))
TypeError: can't convert nil into String
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `join'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `find_base_path_for'
        from /Users/kyleh/projects/app/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:160:in `find'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `each'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `find'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `find_base_path_for'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:498:in `find_full_template_path'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:404:in `full_template_path'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:504:in `template_exists?'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:543:in `find_template_extension_from_handler'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:535:in `each'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:535:in `find_template_extension_from_handler'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:528:in `find_template_extension_for'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:421:in `pick_template_extension'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:298:in `render_file'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:348:in `render_without_haml'
        from /Users/kyleh/projects/app/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:502:in `render'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:494:in `render_message'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:442:in `create!'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:403:in `initialize'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:351:in `new'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:351:in `method_missing'
        from (irb):1
>>

## with debugging in base.rb:518:
>>  OrderNotifier.create_order_confirmed(Order.find(1))

template file name: order_notifier/order_confirmed.html.erb
view paths: [nil]

TypeError: can't convert nil into String
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `join'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `find_base_path_for'
        from /Users/kyleh/projects/app/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:160:in `find'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `each'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `find'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:518:in `find_base_path_for'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:498:in `find_full_template_path'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:404:in `full_template_path'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:504:in `template_exists?'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:543:in `find_template_extension_from_handler'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:535:in `each'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:535:in `find_template_extension_from_handler'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:528:in `find_template_extension_for'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:421:in `pick_template_extension'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:298:in `render_file'
        from /Users/kyleh/projects/app/vendor/rails/actionpack/lib/action_view/base.rb:348:in `render_without_haml'
        from /Users/kyleh/projects/app/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:502:in `render'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:494:in `render_message'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:442:in `create!'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:403:in `initialize'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:351:in `new'
        from /Users/kyleh/projects/app/vendor/rails/actionmailer/lib/action_mailer/base.rb:351:in `method_missing'
        from (irb):1
>>