Created
February 27, 2009 06:10
-
-
Save kofno/71317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionView::TemplateError (You have a nil object when you didn't expect it! | |
You might have expected an instance of ActiveRecord::Base. | |
The error occurred while evaluating nil.new_record?) on line #32 of app/views/events/_contact_show_tab.html.haml: | |
29: | |
30: %fieldset.form | |
31: %legend Contacts | Elevated to morbidity Events | |
32: - if @event.morbidity_child_events.first.new_record? | |
33: %h3 None | |
34: - else | |
35: = render :partial => 'events/contact_show', :locals => { :contacts => @event.morbidity_child_events } | |
app/views/events/_contact_show_tab.html.haml:32:in `_run_haml_app47views47events47_contact_show_tab46html46haml_locals_contact_show_tab_f_object' | |
app/helpers/events_helper.rb:35:in `core_element_show' | |
app/views/events/_contact_show_tab.html.haml:22:in `_run_haml_app47views47events47_contact_show_tab46html46haml_locals_contact_show_tab_f_object' | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:14:in `render_with_haml' | |
app/views/morbidity_events/show.html.erb:82 | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml' | |
app/helpers/application_helper.rb:140:in `tabbed_content' | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml' | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:102:in `content_tag_with_haml' | |
app/helpers/application_helper.rb:139:in `tabbed_content' | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml' | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:102:in `content_tag_with_haml' | |
app/helpers/application_helper.rb:127:in `tabbed_content' | |
app/views/morbidity_events/show.html.erb:64 | |
app/views/morbidity_events/show.html.erb:51 | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:14:in `render_with_haml' | |
gems/gems/haml-2.0.7/lib/haml/helpers/action_view_mods.rb:14:in `render_with_haml' | |
app/controllers/morbidity_events_controller.rb:63:in `show' | |
gems/gems/haml-2.0.7/lib/sass/plugin/rails.rb:19:in `process' | |
file:lib/jruby-rack-0.9.4-SNAPSHOT.jar!/rack/adapter/rails.rb:35:in `serve_rails' | |
file:lib/jruby-rack-0.9.4-SNAPSHOT.jar!/rack/adapter/rails.rb:40:in `call' | |
file:lib/jruby-rack-0.9.4-SNAPSHOT.jar!/jruby/rack/rails.rb:149:in `call' | |
file:lib/jruby-rack-0.9.4-SNAPSHOT.jar!/rack/handler/servlet.rb:17:in `call' | |
:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment