Skip to content

Instantly share code, notes, and snippets.

@shivanibhanwal
Created November 8, 2013 19:01
Show Gist options
  • Save shivanibhanwal/7375835 to your computer and use it in GitHub Desktop.
Save shivanibhanwal/7375835 to your computer and use it in GitHub Desktop.
Stacktrace for error in forem routes while trying to send a subscription mailer
ActionController::RoutingError (No route matches {}):
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:540:in `raise_routing_error'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:536:in `rescue in generate'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:528:in `generate'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:569:in `generate'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:594:in `url_for'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:342:in `url_for'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:216:in `forem_path'
actionpack (3.2.15) lib/action_dispatch/routing/mapper.rb:446:in `block (2 levels) in define_generate_prefix'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:589:in `url_for'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:342:in `url_for'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:216:in `forum_topic_url'
actionpack (3.2.15) lib/action_dispatch/routing/routes_proxy.rb:29:in `forum_topic_url'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/views/forem/subscription_mailer/topic_reply.text.erb:4:in `___sers_shivanithakur__bundler_ruby_______forem_cc_b___ee__e_app_views_forem_subscription_mailer_topic_reply_text_erb__3464998242312286768_70339398415940'
actionpack (3.2.15) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.15) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.15) lib/action_view/template.rb:143:in `render'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
actionpack (3.2.15) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.15) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.15) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.15) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.15) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:18:in `render'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:160:in `block in render_with_newrelic'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:268:in `trace_execution_scoped'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:159:in `render_with_newrelic'
actionpack (3.2.15) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.15) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:88:in `render'
actionmailer (3.2.15) lib/action_mailer/base.rb:713:in `block in collect_responses_and_parts_order'
actionmailer (3.2.15) lib/action_mailer/base.rb:724:in `each'
actionmailer (3.2.15) lib/action_mailer/base.rb:724:in `each_template'
actionmailer (3.2.15) lib/action_mailer/base.rb:709:in `collect_responses_and_parts_order'
actionmailer (3.2.15) lib/action_mailer/base.rb:648:in `mail'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/mailers/forem/subscription_mailer.rb:10:in `topic_reply'
actionpack (3.2.15) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.15) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:45:in `process'
actionmailer (3.2.15) lib/action_mailer/base.rb:459:in `process'
actionmailer (3.2.15) lib/action_mailer/base.rb:453:in `initialize'
actionmailer (3.2.15) lib/action_mailer/base.rb:439:in `new'
actionmailer (3.2.15) lib/action_mailer/base.rb:439:in `method_missing'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/models/forem/subscription.rb:14:in `send_notification'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/models/forem/post.rb:104:in `block in email_topic_subscribers'
activerecord (3.2.15) lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
activerecord (3.2.15) lib/active_record/relation/batches.rb:21:in `each'
activerecord (3.2.15) lib/active_record/relation/batches.rb:21:in `block in find_each'
activerecord (3.2.15) lib/active_record/relation/batches.rb:72:in `find_in_batches'
activerecord (3.2.15) lib/active_record/relation/batches.rb:20:in `find_each'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/models/forem/post.rb:103:in `email_topic_subscribers'
activesupport (3.2.15) lib/active_support/callbacks.rb:468:in `_run__1219115819741095124__save__191059912096444646__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.2.15) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.2.15) lib/active_record/persistence.rb:84:in `save'
activerecord (3.2.15) lib/active_record/validations.rb:50:in `save'
activerecord (3.2.15) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.2.15) lib/active_record/transactions.rb:259:in `block (2 levels) in save'
activerecord (3.2.15) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
activerecord (3.2.15) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.2.15) lib/active_record/transactions.rb:208:in `transaction'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:518:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:268:in `trace_execution_scoped'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:513:in `transaction_with_trace_ActiveRecord_self_name_transaction'
activerecord (3.2.15) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
activerecord (3.2.15) lib/active_record/transactions.rb:259:in `block in save'
activerecord (3.2.15) lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
activerecord (3.2.15) lib/active_record/transactions.rb:258:in `save'
activerecord (3.2.15) lib/active_record/persistence.rb:181:in `update_attribute'
workflow (0.8.0) lib/workflow.rb:300:in `persist_workflow_state'
workflow (0.8.0) lib/workflow.rb:187:in `process_event!'
workflow (0.8.0) lib/workflow.rb:133:in `block (4 levels) in workflow'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/models/forem/post.rb:114:in `skip_pending_review'
activesupport (3.2.15) lib/active_support/callbacks.rb:417:in `_run__1219115819741095124__create__191059912096444646__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.2.15) lib/active_record/callbacks.rb:268:in `create'
activerecord (3.2.15) lib/active_record/persistence.rb:348:in `create_or_update'
activerecord (3.2.15) lib/active_record/callbacks.rb:264:in `block in create_or_update'
activesupport (3.2.15) lib/active_support/callbacks.rb:458:in `_run__1219115819741095124__save__191059912096444646__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.2.15) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.2.15) lib/active_record/persistence.rb:84:in `save'
activerecord (3.2.15) lib/active_record/validations.rb:50:in `save'
activerecord (3.2.15) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.2.15) lib/active_record/transactions.rb:259:in `block (2 levels) in save'
activerecord (3.2.15) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
activerecord (3.2.15) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.2.15) lib/active_record/transactions.rb:208:in `transaction'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:518:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:268:in `trace_execution_scoped'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/method_tracer.rb:513:in `transaction_with_trace_ActiveRecord_self_name_transaction'
activerecord (3.2.15) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
activerecord (3.2.15) lib/active_record/transactions.rb:259:in `block in save'
activerecord (3.2.15) lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
activerecord (3.2.15) lib/active_record/transactions.rb:258:in `save'
/Users/shivanithakur/.bundler/ruby/1.9.1/forem-cc0b103ee64e/app/controllers/forem/posts_controller.rb:25:in `create'
actionpack (3.2.15) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.15) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.15) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.15) lib/active_support/callbacks.rb:513:in `_run__4323780960252300198__process_action__439446586129281312__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.15) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.15) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.15) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.15) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.15) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.15) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:38:in `block in process_action'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:318:in `perform_action_with_newrelic_trace'
newrelic_rpm (3.6.5.130) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:37:in `process_action'
actionpack (3.2.15) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.15) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.15) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.15) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.15) 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.15) lib/action_dispatch/routing/route_set.rb:608:in `call'
railties (3.2.15) lib/rails/engine.rb:484:in `call'
railties (3.2.15) lib/rails/railtie/configurable.rb:30:in `method_missing'
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.15) lib/action_dispatch/routing/route_set.rb:608:in `call'
newrelic_rpm (3.6.5.130) lib/new_relic/rack/error_collector.rb:12:in `call'
newrelic_rpm (3.6.5.130) lib/new_relic/rack/agent_hooks.rb:22:in `call'
newrelic_rpm (3.6.5.130) lib/new_relic/rack/browser_monitoring.rb:16:in `call'
newrelic_rpm (3.6.5.130) lib/new_relic/rack/developer_mode.rb:28: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.15) 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:35:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.15) 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.15) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.15) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.15) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `_run__1736309303051011587__call__191059912096444646__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
airbrake (3.1.12) lib/airbrake/rails/middleware.rb:13:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.15) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.15) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.15) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.15) 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.15) 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.15) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
rack-livereload (0.3.15) lib/rack/livereload.rb:23:in `_call'
rack-livereload (0.3.15) lib/rack/livereload.rb:14:in `call'
actionpack (3.2.15) lib/action_dispatch/middleware/static.rb:63:in `call'
airbrake (3.1.12) lib/airbrake/user_informer.rb:16:in `_call'
airbrake (3.1.12) lib/airbrake/user_informer.rb:12:in `call'
railties (3.2.15) lib/rails/engine.rb:484:in `call'
railties (3.2.15) lib/rails/application.rb:231:in `call'
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
railties (3.2.15) lib/rails/rack/log_tailer.rb:17:in `call'
thin (1.5.1) lib/thin/connection.rb:81:in `block in pre_process'
thin (1.5.1) lib/thin/connection.rb:79:in `catch'
thin (1.5.1) lib/thin/connection.rb:79:in `pre_process'
thin (1.5.1) lib/thin/connection.rb:54:in `process'
thin (1.5.1) lib/thin/connection.rb:39:in `receive_data'
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run_machine'
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'
thin (1.5.1) lib/thin/backends/base.rb:63:in `start'
thin (1.5.1) lib/thin/server.rb:159:in `start'
rack (1.4.5) lib/rack/handler/thin.rb:13:in `run'
rack (1.4.5) lib/rack/server.rb:268:in `start'
railties (3.2.15) lib/rails/commands/server.rb:70:in `start'
railties (3.2.15) lib/rails/commands.rb:55:in `block in <top (required)>'
railties (3.2.15) lib/rails/commands.rb:50:in `tap'
railties (3.2.15) lib/rails/commands.rb:50:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'
Rendered /usr/local/rvm/gems/ruby-1.9.3-p448@guess/gems/actionpack-3.2.15/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment