gitcoinco / code_fund_ads

CodeFund is an open source platform that helps fund maintainers, bloggers, and builders through non-tracking ethical ads
https://codefund.io
GNU Affero General Public License v3.0
375 stars 104 forks source link

ActionController::UrlGenerationError: No route matches {:action=>"show", :campaign_id=>#<Campaign id: 863, user_id: 1036, creative_id: 806, status: "archived", fallback: false, name: "Progress - April 2020", url: "https://www.telerik.com/kendo-react-ui/ca #1337

Closed coderberry closed 4 years ago

coderberry commented 4 years ago

View details in Rollbar: https://rollbar.com/codefund/codefund/items/673/



ActionView::Template::Error: No route matches {:action=>"show", :campaign_id=>#<Campaign id: 1042, user_id: 1116, creative_id: 980, status: "active", fallback: false, name: "amer_brand_java-frontend_en", url: "https://try.digitalocean.com/frontend/?utm_medium=...", start_date: "2020-06-08", end_date: "2020-07-31", core_hours_only: false, weekdays_only: false, total_budget_cents: 108000, total_budget_currency: "USD", daily_budget_cents: 2000, daily_budget_currency: "USD", ecpm_cents: 0, ecpm_currency: "USD", country_codes: ["AR", "BO", "BR", "BZ", "CA", "CL", "CO", "CR", "EC", "FK", "GF", "GS", "GT", "GY", "HN", "MX", "NI", "PA", "PE", "PY", "SR", "SV", "US", "UY", "VE"], keywords: ["Angular", "Dart", "Frontend", "JavaScript", "React", "VueJS"], negative_keywords: [], created_at: "2020-06-08 20:12:24", updated_at: "2020-06-23 20:26:50", legacy_id: nil, organization_id: 22, job_posting: false, province_codes: [], fixed_ecpm: true, assigned_property_ids: [], hourly_budget_cents: 2000, hourly_budget_currency: "USD", prohibited_property_ids: [], creative_ids: [1032, 980], paid_fallback: false, campaign_bundle_id: 157, audience_ids: [5], region_ids: [2, 3], ecpm_multiplier: 0.95e0>, :controller=>"campaign_estimates"}, missing required keys: [:id]
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/journey/formatter.rb", line 57, in generate
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/routing/route_set.rb", line 738, in generate
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/routing/route_set.rb", line 769, in generate
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/routing/route_set.rb", line 816, in url_for
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/routing/route_set.rb", line 269, in call
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/routing/route_set.rb", line 211, in call
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_dispatch/routing/route_set.rb", line 326, in block in define_url_helper
  File "/app/app/helpers/campaigns_helper.rb", line 11, in campaign_tabs
  File "/app/app/views/campaign_dailies/index.html.erb", line 1, in _app_views_campaign_dailies_index_html_erb__689883985190144837_69985796193700
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/base.rb", line 274, in _run
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/template.rb", line 185, in block in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb", line 182, in instrument
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/template.rb", line 385, in instrument_render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/template.rb", line 183, in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/template_renderer.rb", line 58, in block (2 levels) in render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/abstract_renderer.rb", line 88, in block in instrument
  File "/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb", line 180, in block in instrument
  File "/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb", line 180, in instrument
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/abstract_renderer.rb", line 87, in instrument
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/template_renderer.rb", line 57, in block in render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/template_renderer.rb", line 65, in render_with_layout
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/template_renderer.rb", line 56, in render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/scout_apm-2.6.7/lib/scout_apm/instruments/action_view.rb", line 128, in render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/template_renderer.rb", line 13, in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/renderer.rb", line 61, in render_template_to_object
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/renderer/renderer.rb", line 29, in render_to_object
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/rendering.rb", line 117, in block in _render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/base.rb", line 304, in in_rendering_context
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/rendering.rb", line 116, in _render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/streaming.rb", line 218, in _render_template
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.1/lib/action_view/rendering.rb", line 103, in render_to_body
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/rendering.rb", line 52, in render_to_body
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/renderers.rb", line 142, in render_to_body
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/abstract_controller/rendering.rb", line 25, in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/rendering.rb", line 36, in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/instrumentation.rb", line 44, in block (2 levels) in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/core_ext/benchmark.rb", line 14, in block in ms
  File "/app/vendor/ruby-2.6.6/lib/ruby/2.6.0/benchmark.rb", line 308, in realtime
  File "/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/core_ext/benchmark.rb", line 14, in ms
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/instrumentation.rb", line 44, in block in render
  File "/app/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.1/lib/action_controller/metal/instrumentation.rb", line 84, in cleanup_view_runtime
  File "/app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.1/lib/active_record/railties/controller_runtime.rb", line 34, in cleanup_view_runtime
  File "/app/vendor/bundle/ruby/2.6.0/gems