NoMethodError in Roroacms::Admin::Articles#edit

Showing /Applications/Ruby/engines/roroacms/app/views/roroacms/admin/partials/_revision_tree.html.erb where line #63 raised:

undefined method `username' for nil:NilClass

Extracted source (around line #63):

60
61
62
63
64
65
66
          
</li>
</ul>
</div>
<small class="text-muted pull-right"><i class="fa fa-clock-o"></i> <%= time_ago_in_words(f.updated_at) %> ago by <%= (f.post_status.downcase == 'user-autosave' || f.post_type.downcase == 'page') ? f.admin.username : t("views.admin.generic.system") %></small>
</div>
</div>

Trace of template inclusion: /Applications/Ruby/engines/roroacms/app/views/roroacms/admin/partials/_content_form.html.erb, /Applications/Ruby/engines/roroacms/app/views/roroacms/admin/articles/edit.html.erb

Rails.root: /Applications/Ruby/engines/roroacms/spec/dummy

Application Trace | Framework Trace | Full Trace
/Applications/Ruby/engines/roroacms/app/views/roroacms/admin/partials/_revision_tree.html.erb:63:in `block in ___pplications__uby_engines_roroacms_app_views_roroacms_admin_partials__revision_tree_html_erb__412369948990962060_70194151502940'
activerecord (4.1.4) lib/active_record/relation/delegation.rb:132:in `each'
activerecord (4.1.4) lib/active_record/relation/delegation.rb:132:in `each_with_index'
activerecord (4.1.4) lib/active_record/relation/delegation.rb:132:in `public_send'
activerecord (4.1.4) lib/active_record/relation/delegation.rb:132:in `method_missing'
activerecord (4.1.4) lib/active_record/relation/delegation.rb:99:in `method_missing'
/Applications/Ruby/engines/roroacms/app/views/roroacms/admin/partials/_revision_tree.html.erb:14:in `___pplications__uby_engines_roroacms_app_views_roroacms_admin_partials__revision_tree_html_erb__412369948990962060_70194151502940'
actionview (4.1.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionview (4.1.4) lib/action_view/template.rb:339:in `instrument'
actionview (4.1.4) lib/action_view/template.rb:143:in `render'
actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'
actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render'
actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render'
actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render'
/Applications/Ruby/engines/roroacms/app/views/roroacms/admin/partials/_content_form.html.erb:143:in `block in ___pplications__uby_engines_roroacms_app_views_roroacms_admin_partials__content_form_html_erb___4277724454661248280_70194173502380'
actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer'
actionview (4.1.4) lib/action_view/helpers/capture_helper.rb:38:in `capture'
actionview (4.1.4) lib/action_view/helpers/form_helper.rb:434:in `form_for'
/Applications/Ruby/engines/roroacms/app/views/roroacms/admin/partials/_content_form.html.erb:1:in `___pplications__uby_engines_roroacms_app_views_roroacms_admin_partials__content_form_html_erb___4277724454661248280_70194173502380'
actionview (4.1.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionview (4.1.4) lib/action_view/template.rb:339:in `instrument'
actionview (4.1.4) lib/action_view/template.rb:143:in `render'
actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'
actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:279:in `block in render'
actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionview (4.1.4) lib/action_view/renderer/partial_renderer.rb:278:in `render'
actionview (4.1.4) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (4.1.4) lib/action_view/helpers/rendering_helper.rb:35:in `render'
/Applications/Ruby/engines/roroacms/app/views/roroacms/admin/articles/edit.html.erb:4:in `___pplications__uby_engines_roroacms_app_views_roroacms_admin_articles_edit_html_erb___1536853207232965657_70194195479500'
actionview (4.1.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionview (4.1.4) lib/action_view/template.rb:339:in `instrument'
actionview (4.1.4) lib/action_view/template.rb:143:in `render'
actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionview (4.1.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:53:in `render_template'
actionview (4.1.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionview (4.1.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (4.1.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (4.1.4) lib/action_view/rendering.rb:99:in `_render_template'
actionpack (4.1.4) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (4.1.4) lib/action_view/rendering.rb:82:in `render_to_body'
actionpack (4.1.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
actionpack (4.1.4) lib/action_controller/metal/renderers.rb:32:in `render_to_body'
actionpack (4.1.4) lib/abstract_controller/rendering.rb:25:in `render'
actionpack (4.1.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/smnfletch/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (4.1.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:113:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:229:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:149:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `call'
activesupport (4.1.4) lib/active_support/callbacks.rb:86:in `run_callbacks'
actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.1.4) lib/abstract_controller/base.rb:136:in `process'
actionview (4.1.4) lib/action_view/rendering.rb:30:in `process'
actionpack (4.1.4) lib/action_controller/metal.rb:196:in `dispatch'
actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.1.4) lib/action_controller/metal.rb:232:in `block in action'
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `call'
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in `call'
actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call'
railties (4.1.4) lib/rails/engine.rb:514:in `call'
railties (4.1.4) lib/rails/railtie.rb:194:in `public_send'
railties (4.1.4) lib/rails/railtie.rb:194:in `method_missing'
actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in `call'
i18n-js (2.1.2) lib/i18n-js/middleware.rb:11:in `call'
warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
warden (1.2.3) lib/warden/manager.rb:34:in `catch'
warden (1.2.3) lib/warden/manager.rb:34:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call'
activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
activerecord (4.1.4) lib/active_record/migration.rb:380:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks'
actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.1.4) lib/rails/engine.rb:514:in `call'
railties (4.1.4) lib/rails/application.rb:144:in `call'
rack (1.5.2) lib/rack/builder.rb:138:in `call'
rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call'
rack (1.5.2) lib/rack/urlmap.rb:50:in `each'
rack (1.5.2) lib/rack/urlmap.rb:50:in `call'
rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
rack-test (0.6.2) lib/rack/test.rb:57:in `get'
/Users/smnfletch/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/forwardable.rb:201:in `get'
capybara (2.4.1) lib/capybara/rack_test/browser.rb:60:in `process'
capybara (2.4.1) lib/capybara/rack_test/browser.rb:38:in `block in process_and_follow_redirects'
capybara (2.4.1) lib/capybara/rack_test/browser.rb:37:in `times'
capybara (2.4.1) lib/capybara/rack_test/browser.rb:37:in `process_and_follow_redirects'
capybara (2.4.1) lib/capybara/rack_test/browser.rb:26:in `submit'
capybara (2.4.1) lib/capybara/rack_test/form.rb:75:in `submit'
capybara (2.4.1) lib/capybara/rack_test/node.rb:60:in `click'
capybara (2.4.1) lib/capybara/node/element.rb:133:in `block in click'
capybara (2.4.1) lib/capybara/node/base.rb:84:in `synchronize'
capybara (2.4.1) lib/capybara/node/element.rb:133:in `click'
capybara (2.4.1) lib/capybara/node/actions.rb:37:in `click_button'
capybara (2.4.1) lib/capybara/session.rb:675:in `block (2 levels) in <class:Session>'
capybara (2.4.1) lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
/Applications/Ruby/engines/roroacms/spec/requests/roroacms/admin/article_spec.rb:94:in `block (3 levels) in <top (required)>'
rspec-core (3.0.3) lib/rspec/core/example.rb:148:in `instance_exec'
rspec-core (3.0.3) lib/rspec/core/example.rb:148:in `block in run'
rspec-core (3.0.3) lib/rspec/core/example.rb:210:in `call'
rspec-core (3.0.3) lib/rspec/core/example.rb:210:in `block (2 levels) in <class:Procsy>'
rspec-rails (3.0.2) lib/rspec/rails/adapters.rb:72:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
rspec-core (3.0.3) lib/rspec/core/example.rb:294:in `instance_exec'
rspec-core (3.0.3) lib/rspec/core/example.rb:294:in `instance_exec'
rspec-core (3.0.3) lib/rspec/core/hooks.rb:430:in `block (2 levels) in run'
rspec-core (3.0.3) lib/rspec/core/example.rb:210:in `call'
rspec-core (3.0.3) lib/rspec/core/example.rb:210:in `block (2 levels) in <class:Procsy>'
rspec-core (3.0.3) lib/rspec/core/hooks.rb:428:in `run'
rspec-core (3.0.3) lib/rspec/core/hooks.rb:485:in `run'
rspec-core (3.0.3) lib/rspec/core/example.rb:303:in `with_around_example_hooks'
rspec-core (3.0.3) lib/rspec/core/example.rb:145:in `run'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:494:in `block in run_examples'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:490:in `map'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:490:in `run_examples'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:457:in `run'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:458:in `block in run'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:458:in `map'
rspec-core (3.0.3) lib/rspec/core/example_group.rb:458:in `run'
rspec-core (3.0.3) lib/rspec/core/runner.rb:112:in `block (2 levels) in run_specs'
rspec-core (3.0.3) lib/rspec/core/runner.rb:112:in `map'
rspec-core (3.0.3) lib/rspec/core/runner.rb:112:in `block in run_specs'
rspec-core (3.0.3) lib/rspec/core/reporter.rb:54:in `report'
rspec-core (3.0.3) lib/rspec/core/runner.rb:108:in `run_specs'
rspec-core (3.0.3) lib/rspec/core/runner.rb:86:in `run'
rspec-core (3.0.3) lib/rspec/core/runner.rb:70:in `run'
rspec-core (3.0.3) lib/rspec/core/runner.rb:38:in `invoke'
rspec-core (3.0.3) exe/rspec:4:in `<top (required)>'
/Users/smnfletch/.rvm/gems/ruby-1.9.3-p385/bin/rspec:19:in `load'
/Users/smnfletch/.rvm/gems/ruby-1.9.3-p385/bin/rspec:19:in `<main>'
/Users/smnfletch/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
/Users/smnfletch/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'

Request

Parameters:

{"id"=>"11273"}

Response

Headers:

None