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: 995, user_id: 1029, creative_id: 1011, status: "active", fallback: false, name: "KubeCon + CloudNativeCon Virtual", url: "https://events.linuxfoundation. #1336

Closed coderberry closed 4 years ago

coderberry commented 4 years ago

Steps to replicate:

Go to https://app.codefund.io/campaigns/995/creatives

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



ActionView::Template::Error: No route matches {:action=>"show", :campaign_id=>#<Campaign id: 995, user_id: 1029, creative_id: 1011, status: "active", fallback: false, name: "KubeCon + CloudNativeCon Virtual", url: "https://events.linuxfoundation.org/kubecon-cloudna...", start_date: "2020-06-16", end_date: "2020-08-16", core_hours_only: false, weekdays_only: false, total_budget_cents: 2000000, total_budget_currency: "USD", daily_budget_cents: 32258, daily_budget_currency: "USD", ecpm_cents: 0, ecpm_currency: "USD", country_codes: ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"], keywords: [".NET", "Android", "Backend", "C", "D", "Database", "DevOps", "Developer Resources", "Erlang", "F#", "Game Development", "Go", "Groovy", "Haskell", "Hybrid & Mobile Web", "IoT", "Java", "Julia", "Kotlin", "Machine Learning", "Objective-C", "Other", "PHP", "PL/SQL", "Python", "Q", "R", "Ruby", "Rust", "Scala", "Security", "Serverless", "Swift", "Virtual Reality", "iOS"], negative_keywords: [], created_at: "2020-05-27 21:13:36", updated_at: "2020-06-20 01:19:23", legacy_id: nil, organization_id: 371, job_posting: false, province_codes: [], fixed_ecpm: true, assigned_property_ids: [], hourly_budget_cents: 2688, hourly_budget_currency: "USD", prohibited_property_ids: [], creative_ids: [1011, 1012], paid_fallback: false, campaign_bundle_id: 115, audience_ids: [3, 4, 6, 7, 8], region_ids: [1, 10, 2, 3, 4, 5, 6, 7, 8, 9], ecpm_multiplier: 0.1e1>, :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_creatives/index.html.erb", line 1, in _app_views_campaign_creatives_index_html_erb__341801821435815741_69985786692320
  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/actio