Skip to content

Instantly share code, notes, and snippets.

@pikesley
Created September 12, 2013 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pikesley/6539493 to your computer and use it in GitHub Desktop.
Save pikesley/6539493 to your computer and use it in GitHub Desktop.
'splode
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
24: <div class='control-group'>
25: <%= form.label "#{attribute}_title", class: 'control-label' %>
26: <div class='controls'>
27: <%= form.text_field "#{attribute}_title", class: 'input-xlarge' %>
28: </div>
29: </div>
30:
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/odi_content_models-5f986f000a66/app/models/attachable_with_metadata.rb:36:in `block (3 levels) in attaches_with_metadata'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:1159:in `value_before_type_cast'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:1147:in `value_before_type_cast'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:1041:in `block in to_input_field_tag'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:1041:in `fetch'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:1041:in `to_input_field_tag'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:690:in `text_field'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:1284:in `text_field'
app/views/admin/shared/_asset.html.erb:27:in `block in _app_views_admin_shared__asset_html_erb__3976517771225249041_46546760'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:in `capture'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-bootstrap-3428fef4f787/lib/formtastic-bootstrap/helpers/fieldset_wrapper.rb:21:in `field_set_and_list_wrapping'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-bootstrap-3428fef4f787/lib/formtastic-bootstrap/helpers/inputs_helper.rb:19:in `inputs'
app/views/admin/shared/_asset.html.erb:1:in `_app_views_admin_shared__asset_html_erb__3976517771225249041_46546760'
actionpack (3.2.13) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.13) lib/action_view/template.rb:143:in `render'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionpack (3.2.13) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.13) lib/action_view/renderer/renderer.rb:15:in `render'
actionpack (3.2.13) lib/action_view/helpers/rendering_helper.rb:24:in `render'
app/views/admin/news/_edit.html.erb:9:in `block (2 levels) in _app_views_admin_news__edit_html_erb__4323552866537366948_44062240'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:in `capture'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-bootstrap-3428fef4f787/lib/formtastic-bootstrap/helpers/fieldset_wrapper.rb:21:in `field_set_and_list_wrapping'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-bootstrap-3428fef4f787/lib/formtastic-bootstrap/helpers/inputs_helper.rb:19:in `inputs'
app/views/admin/news/_edit.html.erb:2:in `block in _app_views_admin_news__edit_html_erb__4323552866537366948_44062240'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:378:in `form_for'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-7b7428fa4a6a/lib/formtastic/helpers/form_helper.rb:161:in `block in semantic_form_for'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-7b7428fa4a6a/lib/formtastic/helpers/form_helper.rb:192:in `with_custom_field_error_proc'
/var/www/publisher/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-7b7428fa4a6a/lib/formtastic/helpers/form_helper.rb:160:in `semantic_form_for'
app/views/admin/news/_edit.html.erb:1:in `_app_views_admin_news__edit_html_erb__4323552866537366948_44062240'
actionpack (3.2.13) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.13) lib/action_view/template.rb:143:in `render'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:237:in `render'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment