fromthepage icon indicating copy to clipboard operation
fromthepage copied to clipboard

500 error creating account from organization project

Open saracarl opened this issue 10 months ago • 0 comments

I think someone is going to /erhfund/sign_up and getting a 500 error because we aren't passing the slug successfully. (Need a test for this.)

I, [2024-04-16T20:27:36.912202 #17032] INFO -- : Started GET "/erhfund/sign_up" for 52.233.106.27 at 2024-04-16 20:27:36 +0000 I, [2024-04-16T20:27:36.913429 #17032] INFO -- : Processing by RegistrationsController#owner_new as / I, [2024-04-16T20:27:36.913637 #17032] INFO -- : Parameters: {"user_slug"=>"erhfund"} I, [2024-04-16T20:27:36.926452 #17032] INFO -- : Rendered devise/registrations/owner_new.html.slim within layouts/application (Duration: 2.1ms | Allocations: 1687) I, [2024-04-16T20:27:36.926858 #17032] INFO -- : Rendered layout layouts/application.html.slim (Duration: 3.0ms | Allocations: 2404) I, [2024-04-16T20:27:36.927538 #17032] INFO -- : Completed 500 in 14ms (ActiveRecord: 2.8ms | Allocations: 7528) F, [2024-04-16T20:27:36.931305 #17032] FATAL -- :
ActionView::Template::Error (undefined method `slug' for nil:NilClass): 24: small 25: i= t('devise.real_name_message') 26: .signon_field 27: =hidden_field_tag :owner_slug, @owner.slug 28: -if RECAPTCHA_ENABLED 29: .signon_field 30: =recaptcha_tags

app/views/devise/registrations/owner_new.html.slim:27 app/views/devise/registrations/owner_new.html.slim:5 app/controllers/registrations_controller.rb:4:in new' app/controllers/registrations_controller.rb:9:in owner_new' app/controllers/application_controller.rb:64:in `switch_locale'

saracarl avatar Apr 16 '24 20:04 saracarl