Last active
December 22, 2015 22:29
-
-
Save carlosdavis/6540470 to your computer and use it in GitHub Desktop.
Exception for bootstrap_form gem on fields_for on a serialized hash attribute.
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
= bootstrap_form_for @user do |f| | |
= f.fields_for :preferences do |builder| | |
= builder.text_field :favorite_color | |
= builder.text_field :favorite_animal |
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
undefined method `errors' for nil:NilClass | |
Extracted source (around line #13): | |
10: %fieldset | |
11: %h3 Quantitative Target | |
12: = f.fields_for :target_value do |builder| | |
13: = builder.text_field :value | |
14: = builder.text_field :units_type | |
15: = builder.text_field :units | |
16: | |
Trace of template inclusion: app/views/goals/new.html.haml | |
Rails.root: /Users/carlosdavis/www/scope5 | |
Application Trace | Framework Trace | Full Trace | |
bootstrap_form (0.3.2) lib/bootstrap_form/form_builder.rb:70:in `control_group' | |
bootstrap_form (0.3.2) lib/bootstrap_form/form_builder.rb:25:in `block (2 levels) in <class:FormBuilder>' | |
app/views/goals/_form.html.haml:13:in `block (2 levels) in _app_views_goals__form_html_haml__1478889322516366989_70264062881820' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:45:in `block in capture_with_haml' | |
haml (4.0.3) lib/haml/helpers.rb:368:in `call' | |
haml (4.0.3) lib/haml/helpers.rb:368:in `block in capture_haml' | |
haml (4.0.3) lib/haml/helpers.rb:617:in `with_haml_buffer' | |
haml (4.0.3) lib/haml/helpers.rb:364:in `capture_haml' | |
haml (4.0.3) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml' | |
actionpack (3.2.12) lib/action_view/helpers/form_helper.rb:607:in `fields_for' | |
client_side_validations (3.2.5) lib/client_side_validations/action_view/form_helper.rb:54:in `fields_for' | |
actionpack (3.2.12) lib/action_view/helpers/form_helper.rb:1317:in `fields_for' | |
client_side_validations (3.2.5) lib/client_side_validations/action_view/form_builder.rb:53:in `fields_for_with_client_side_validations' | |
app/views/goals/_form.html.haml:12:in `block in _app_views_goals__form_html_haml__1478889322516366989_70264062881820' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:144:in `call' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:144:in `block (2 levels) in form_for_with_haml' | |
haml (4.0.3) lib/haml/helpers.rb:278:in `with_tabs' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:144:in `block in form_for_with_haml' | |
actionpack (3.2.12) lib/action_view/helpers/capture_helper.rb:40:in `block in capture' | |
actionpack (3.2.12) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' | |
haml (4.0.3) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss' | |
actionpack (3.2.12) lib/action_view/helpers/capture_helper.rb:40:in `capture' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:59:in `capture_with_haml' | |
actionpack (3.2.12) lib/action_view/helpers/form_helper.rb:607:in `fields_for' | |
client_side_validations (3.2.5) lib/client_side_validations/action_view/form_helper.rb:54:in `fields_for' | |
actionpack (3.2.12) lib/action_view/helpers/form_helper.rb:378:in `form_for' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:146:in `form_for_with_haml' | |
haml (4.0.3) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' | |
client_side_validations (3.2.5) lib/client_side_validations/action_view/form_helper.rb:25:in `form_for' | |
bootstrap_form (0.3.2) lib/bootstrap_form/helper.rb:12:in `block in bootstrap_form_for' | |
bootstrap_form (0.3.2) lib/bootstrap_form/helper.rb:19:in `temporarily_disable_field_error_proc' | |
bootstrap_form (0.3.2) lib/bootstrap_form/helper.rb:11:in `bootstrap_form_for' | |
app/views/goals/_form.html.haml:3:in `_app_views_goals__form_html_haml__1478889322516366989_70264062881820' | |
actionpack (3.2.12) lib/action_view/template.rb:145:in `block in render' | |
activesupport (3.2.12) lib/active_support/notifications.rb:125:in `instrument' | |
actionpack (3.2.12) lib/action_view/template.rb:143:in `render' | |
actionpack (3.2.12) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' | |
actionpack (3.2.12) lib/action_view/renderer/partial_renderer.rb:238:in `block in render' | |
actionpack (3.2.12) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
activesupport (3.2.12) lib/active_support/notifications.rb:123:in `block in instrument' | |
activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
activesupport (3.2.12) lib/active_support/notifications.rb:123:in `instrument' | |
actionpack (3.2.12) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' | |
actionpack (3.2.12) lib/action_view/renderer/partial_renderer.rb:237:in `render' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:176:in `block in render_with_newrelic' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/method_tracer.rb:273:in `trace_execution_scoped' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:175:in `render_with_newrelic' | |
actionpack (3.2.12) lib/action_view/renderer/renderer.rb:41:in `render_partial' | |
actionpack (3.2.12) lib/action_view/helpers/rendering_helper.rb:27:in `render' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' | |
haml (4.0.3) lib/haml/helpers.rb:89:in `non_haml' | |
haml (4.0.3) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' | |
app/views/goals/new.html.haml:7:in `_app_views_goals_new_html_haml__2881756996495666416_70264104565200' | |
actionpack (3.2.12) lib/action_view/template.rb:145:in `block in render' | |
activesupport (3.2.12) lib/active_support/notifications.rb:125:in `instrument' | |
actionpack (3.2.12) lib/action_view/template.rb:143:in `render' | |
actionpack (3.2.12) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' | |
actionpack (3.2.12) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
activesupport (3.2.12) lib/active_support/notifications.rb:123:in `block in instrument' | |
activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
activesupport (3.2.12) lib/active_support/notifications.rb:123:in `instrument' | |
actionpack (3.2.12) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' | |
actionpack (3.2.12) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' | |
actionpack (3.2.12) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' | |
actionpack (3.2.12) lib/action_view/renderer/template_renderer.rb:45:in `render_template' | |
actionpack (3.2.12) lib/action_view/renderer/template_renderer.rb:18:in `render' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:160:in `block in render_with_newrelic' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/method_tracer.rb:273:in `trace_execution_scoped' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:159:in `render_with_newrelic' | |
actionpack (3.2.12) lib/action_view/renderer/renderer.rb:36:in `render_template' | |
actionpack (3.2.12) lib/action_view/renderer/renderer.rb:17:in `render' | |
actionpack (3.2.12) lib/abstract_controller/rendering.rb:110:in `_render_template' | |
actionpack (3.2.12) lib/action_controller/metal/streaming.rb:225:in `_render_template' | |
actionpack (3.2.12) lib/abstract_controller/rendering.rb:103:in `render_to_body' | |
actionpack (3.2.12) lib/action_controller/metal/renderers.rb:28:in `render_to_body' | |
actionpack (3.2.12) lib/action_controller/metal/compatibility.rb:50:in `render_to_body' | |
actionpack (3.2.12) lib/abstract_controller/rendering.rb:88:in `render' | |
actionpack (3.2.12) lib/action_controller/metal/rendering.rb:16:in `render' | |
actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' | |
activesupport (3.2.12) lib/active_support/core_ext/benchmark.rb:5:in `block in ms' | |
/Users/carlosdavis/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' | |
activesupport (3.2.12) lib/active_support/core_ext/benchmark.rb:5:in `ms' | |
actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:40:in `block in render' | |
actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' | |
activerecord (3.2.12) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' | |
actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:39:in `render' | |
actionpack (3.2.12) lib/action_controller/metal/implicit_render.rb:10:in `default_render' | |
actionpack (3.2.12) lib/action_controller/metal/responder.rb:232:in `default_render' | |
actionpack (3.2.12) lib/action_controller/metal/responder.rb:160:in `to_html' | |
actionpack (3.2.12) lib/action_controller/metal/responder.rb:153:in `respond' | |
actionpack (3.2.12) lib/action_controller/metal/responder.rb:146:in `call' | |
actionpack (3.2.12) lib/action_controller/metal/mime_responds.rb:239:in `respond_with' | |
app/controllers/goals_controller.rb:16:in `new' | |
actionpack (3.2.12) lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
actionpack (3.2.12) lib/abstract_controller/base.rb:167:in `process_action' | |
actionpack (3.2.12) lib/action_controller/metal/rendering.rb:10:in `process_action' | |
actionpack (3.2.12) lib/abstract_controller/callbacks.rb:18:in `block in process_action' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:480:in `_run__3735450245658671685__process_action__3308513256355711620__callbacks' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `__run_callback' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in `run_callbacks' | |
actionpack (3.2.12) lib/abstract_controller/callbacks.rb:17:in `process_action' | |
actionpack (3.2.12) lib/action_controller/metal/rescue.rb:29:in `process_action' | |
actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' | |
activesupport (3.2.12) lib/active_support/notifications.rb:123:in `block in instrument' | |
activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
activesupport (3.2.12) lib/active_support/notifications.rb:123:in `instrument' | |
actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:29:in `process_action' | |
actionpack (3.2.12) lib/action_controller/metal/params_wrapper.rb:207:in `process_action' | |
activerecord (3.2.12) lib/active_record/railties/controller_runtime.rb:18:in `process_action' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:38:in `block in process_action' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:318:in `perform_action_with_newrelic_trace' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:37:in `process_action' | |
actionpack (3.2.12) lib/abstract_controller/base.rb:121:in `process' | |
actionpack (3.2.12) lib/abstract_controller/rendering.rb:45:in `process' | |
actionpack (3.2.12) lib/action_controller/metal.rb:203:in `dispatch' | |
actionpack (3.2.12) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' | |
actionpack (3.2.12) lib/action_controller/metal.rb:246:in `block in action' | |
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:73:in `call' | |
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:73:in `dispatch' | |
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:36:in `call' | |
journey (1.0.4) lib/journey/router.rb:68:in `block in call' | |
journey (1.0.4) lib/journey/router.rb:56:in `each' | |
journey (1.0.4) lib/journey/router.rb:56:in `call' | |
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:601:in `call' | |
bullet (4.6.0) lib/bullet/rack.rb:13:in `call' | |
newrelic_rpm (3.6.2.96) lib/new_relic/rack/error_collector.rb:12:in `call' | |
newrelic_rpm (3.6.2.96) lib/new_relic/rack/agent_hooks.rb:18:in `call' | |
newrelic_rpm (3.6.2.96) lib/new_relic/rack/browser_monitoring.rb:16:in `call' | |
newrelic_rpm (3.6.2.96) lib/new_relic/rack/developer_mode.rb:28:in `call' | |
client_side_validations (3.2.5) lib/client_side_validations/middleware.rb:21:in `call' | |
warden (1.2.1) lib/warden/manager.rb:35:in `block in call' | |
warden (1.2.1) lib/warden/manager.rb:34:in `catch' | |
warden (1.2.1) lib/warden/manager.rb:34:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' | |
rack (1.4.5) lib/rack/etag.rb:23:in `call' | |
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/head.rb:14:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/params_parser.rb:21:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/flash.rb:242:in `call' | |
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context' | |
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/cookies.rb:341:in `call' | |
activerecord (3.2.12) lib/active_record/query_cache.rb:64:in `call' | |
activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `_run__1188710997182183920__call__418297056799009437__callbacks' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `__run_callback' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:385:in `_run_call_callbacks' | |
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in `run_callbacks' | |
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/reloader.rb:65:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/remote_ip.rb:31:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' | |
railties (3.2.12) lib/rails/rack/logger.rb:32:in `call_app' | |
railties (3.2.12) lib/rails/rack/logger.rb:16:in `block in call' | |
activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in `tagged' | |
railties (3.2.12) lib/rails/rack/logger.rb:16:in `call' | |
quiet_assets (1.0.2) lib/quiet_assets.rb:18:in `call_with_quiet_assets' | |
actionpack (3.2.12) lib/action_dispatch/middleware/request_id.rb:22:in `call' | |
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call' | |
rack (1.4.5) lib/rack/runtime.rb:17:in `call' | |
activesupport (3.2.12) lib/active_support/cache/strategy/local_cache.rb:72:in `call' | |
rack (1.4.5) lib/rack/lock.rb:15:in `call' | |
actionpack (3.2.12) lib/action_dispatch/middleware/static.rb:62:in `call' | |
railties (3.2.12) lib/rails/engine.rb:479:in `call' | |
railties (3.2.12) lib/rails/application.rb:223:in `call' | |
railties (3.2.12) lib/rails/railtie/configurable.rb:30:in `method_missing' | |
rack (1.4.5) lib/rack/deflater.rb:13:in `call' | |
rack (1.4.5) lib/rack/lint.rb:48:in `_call' | |
rack (1.4.5) lib/rack/lint.rb:36:in `call' | |
rack (1.4.5) lib/rack/showexceptions.rb:24:in `call' | |
rack (1.4.5) lib/rack/commonlogger.rb:33:in `call' | |
rack (1.4.5) lib/rack/chunked.rb:43:in `call' | |
rack (1.4.5) lib/rack/content_length.rb:14:in `call' | |
unicorn (4.6.2) lib/unicorn/http_server.rb:552:in `process_client' | |
unicorn (4.6.2) lib/unicorn/http_server.rb:632:in `worker_loop' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `call' | |
newrelic_rpm (3.6.2.96) lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `block (4 levels) in <top (required)>' | |
unicorn (4.6.2) lib/unicorn/http_server.rb:500:in `spawn_missing_workers' | |
unicorn (4.6.2) lib/unicorn/http_server.rb:142:in `start' | |
unicorn (4.6.2) bin/unicorn:126:in `<top (required)>' | |
/Users/carlosdavis/.rvm/gems/ruby-1.9.3-p392@scope5/bin/unicorn:19:in `load' | |
/Users/carlosdavis/.rvm/gems/ruby-1.9.3-p392@scope5/bin/unicorn:19:in `<main>' | |
/Users/carlosdavis/.rvm/gems/ruby-1.9.3-p392@scope5/bin/ruby_noexec_wrapper:14:in `eval' | |
/Users/carlosdavis/.rvm/gems/ruby-1.9.3-p392@scope5/bin/ruby_noexec_wrapper:14:in `<main>' |
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
class User < ActiveRecord::Base | |
attr_accessible :preferences | |
serializes :preferences | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I were to try to render that form with a new User object, bootstrap_form would fail with "undefined method `errors' for nil:NilClass" on line 70 bootstrap_form/form_builder.