Skip to content

Instantly share code, notes, and snippets.

@kofno
Created March 4, 2009 15:27
Show Gist options
  • Save kofno/73870 to your computer and use it in GitHub Desktop.
Save kofno/73870 to your computer and use it in GitHub Desktop.
FormElementCache initialize only handles FormElements (ActionView::TemplateError)
On line #19 of app/views/events/people/_name_show.html.haml
16: %fieldset.form
17: %legend Name
18: -f.fields_for(:person, :builder => ExtendedFormBuilder) do |person_form|
19: -core_element_show :last_name, person_form, :horiz do
20: =person_form.label(:last_name)
21: =person.last_name
22: -core_element_show :first_name, person_form, :horiz do
lib/form_element_cache.rb:24:in `initialize'
app/models/form.rb:31:in `form_element_cache'
app/helpers/events_helper.rb:446:in `concat_core_field'
/home/ryan/opt/jruby-1.1.6/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.6/lib/will_paginate/finder.rb:167:in `method_missing_with_paginate'
app/helpers/events_helper.rb:444:in `concat_core_field'
app/helpers/events_helper.rb:33:in `core_element_show'
app/views/events/people/_name_show.html.haml:19:in `_run_haml_app47views47events47people47_name_show46html46haml_locals_event_event_form_f_name_show_object_person'
app/views/events/people/_name_show.html.haml:18:in `_run_haml_app47views47events47people47_name_show46html46haml_locals_event_event_form_f_name_show_object_person'
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
haml (2.0.7) lib/haml/helpers.rb:57:in `non_haml'
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
app/views/events/people/_contact_show.html.haml:23:in `_run_haml_app47views47events47people47_contact_show46html46haml_locals_contact_show_entity_data_event_form_object'
app/views/events/people/_contact_show.html.haml:19:in `_run_haml_app47views47events47people47_contact_show46html46haml_locals_contact_show_entity_data_event_form_object'
app/views/events/people/_contact_show.html.haml:18:in `_run_haml_app47views47events47people47_contact_show46html46haml_locals_contact_show_entity_data_event_form_object'
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:14:in `render_with_haml'
app/views/contact_events/show.html.erb:77
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'
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml'
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'
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml'
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/contact_events/show.html.erb:75
app/views/contact_events/show.html.erb:65
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:14:in `render_with_haml'
haml (2.0.7) lib/haml/helpers/action_view_mods.rb:14:in `render_with_haml'
app/controllers/contact_events_controller.rb:27:in `show'
haml (2.0.7) lib/sass/plugin/rails.rb:19:in `process'
webrat (0.4.2) lib/webrat/rails.rb:70:in `do_request'
webrat (0.4.2) lib/webrat/rails.rb:35:in `get'
webrat (0.4.2) lib/webrat/core/session.rb:104:in `request_page'
webrat (0.4.2) lib/webrat/core/session.rb:205:in `visit'
(eval):2:in `visit'
features/step_definitions/contact_to_morbidity_steps.rb:26:in `When /^I promote Jones to a morbidity event$/'
cucumber (0.1.16) bin/./lib/cucumber/core_ext/proc.rb:48:in `call_in'
cucumber (0.1.16) bin/./lib/cucumber/tree/step.rb:37:in `execute_in'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:119:in `visit_step'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:106:in `visit_regular_step'
cucumber (0.1.16) bin/./lib/cucumber/tree/scenario.rb:17:in `accept'
cucumber (0.1.16) bin/./lib/cucumber/tree/scenario.rb:11:in `each'
cucumber (0.1.16) bin/./lib/cucumber/tree/scenario.rb:11:in `accept'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:87:in `execute_scenario'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:75:in `visit_scenario'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:65:in `visit_regular_scenario'
cucumber (0.1.16) bin/./lib/cucumber/tree/feature.rb:82:in `accept'
cucumber (0.1.16) bin/./lib/cucumber/tree/feature.rb:76:in `each'
cucumber (0.1.16) bin/./lib/cucumber/tree/feature.rb:76:in `accept'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:48:in `visit_feature'
cucumber (0.1.16) bin/./lib/cucumber/tree/features.rb:17:in `accept'
cucumber (0.1.16) bin/./lib/cucumber/tree/features.rb:17:in `each'
cucumber (0.1.16) bin/./lib/cucumber/tree/features.rb:17:in `accept'
cucumber (0.1.16) bin/./lib/cucumber/executor.rb:39:in `visit_features'
cucumber (0.1.16) bin/./lib/cucumber/cli.rb:155:in `execute!'
cucumber (0.1.16) bin/./lib/cucumber/cli.rb:13:in `execute'
cucumber (0.1.16) bin/cucumber:6
features/contact_to_morbidity.feature:39:in `When I promote Jones to a morbidity event'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment