Skip to content

admin user cannot be created #187

Closed
@rwaffen

Description

hdm  | I, [2023-09-21T14:50:05.345675 #25]  INFO -- : [2ad17c8f-3afb-47b8-a1b6-62bfb1912e0d] Started GET "/" for 172.20.0.1 at 2023-09-21 14:50:05 +0200
hdm  | I, [2023-09-21T14:50:05.348066 #25]  INFO -- : [2ad17c8f-3afb-47b8-a1b6-62bfb1912e0d] Processing by PageController#index as HTML
hdm  | I, [2023-09-21T14:50:05.355589 #25]  INFO -- : [2ad17c8f-3afb-47b8-a1b6-62bfb1912e0d] Redirected to http://0.0.0.0:3000/users/new
hdm  | I, [2023-09-21T14:50:05.355697 #25]  INFO -- : [2ad17c8f-3afb-47b8-a1b6-62bfb1912e0d] Completed 302 Found in 8ms (ActiveRecord: 0.7ms | Allocations: 4095)
hdm  | I, [2023-09-21T14:50:05.361931 #25]  INFO -- : [272fd562-72f1-4e33-8325-bcfc8fcacc7c] Started GET "/users/new" for 172.20.0.1 at 2023-09-21 14:50:05 +0200
hdm  | I, [2023-09-21T14:50:05.362682 #25]  INFO -- : [272fd562-72f1-4e33-8325-bcfc8fcacc7c] Processing by UsersController#new as HTML
hdm  | I, [2023-09-21T14:50:05.371698 #25]  INFO -- : [272fd562-72f1-4e33-8325-bcfc8fcacc7c]   Rendered users/new.html.erb within layouts/application (Duration: 2.9ms | Allocations: 3766)
hdm  | I, [2023-09-21T14:50:05.374721 #25]  INFO -- : [272fd562-72f1-4e33-8325-bcfc8fcacc7c]   Rendered layout layouts/application.html.erb (Duration: 6.0ms | Allocations: 9936)
hdm  | I, [2023-09-21T14:50:05.374882 #25]  INFO -- : [272fd562-72f1-4e33-8325-bcfc8fcacc7c] Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 0.3ms | Allocations: 16944)
hdm  | I, [2023-09-21T14:50:21.762107 #25]  INFO -- : [62c53678-63c7-4c77-9e14-f4b917397e29] Started POST "/users" for 172.20.0.1 at 2023-09-21 14:50:21 +0200
hdm  | I, [2023-09-21T14:50:21.765430 #25]  INFO -- : [62c53678-63c7-4c77-9e14-f4b917397e29] Processing by UsersController#create as TURBO_STREAM
hdm  | I, [2023-09-21T14:50:21.765559 #25]  INFO -- : [62c53678-63c7-4c77-9e14-f4b917397e29]   Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"first_name"=>"admin", "last_name"=>"admin", "email"=>"rw@betadots.de", "password"=>"[FILTERED]"}, "button"=>""}
hdm  | I, [2023-09-21T14:50:22.243010 #25]  INFO -- : [62c53678-63c7-4c77-9e14-f4b917397e29] Completed 500 Internal Server Error in 477ms (ActiveRecord: 0.6ms | Allocations: 2313)
hdm  | F, [2023-09-21T14:50:22.243256 #25] FATAL -- : [62c53678-63c7-4c77-9e14-f4b917397e29]
hdm  | [62c53678-63c7-4c77-9e14-f4b917397e29] NoMethodError (undefined method `admin=' for #<User id: nil, first_name: "admin", last_name: "admin", email: "rw@betadots.de", password_digest: [FILTERED], created_at: nil, updated_at: nil, role: "regular">):
hdm  | [62c53678-63c7-4c77-9e14-f4b917397e29]
hdm  | [62c53678-63c7-4c77-9e14-f4b917397e29] app/controllers/users_controller.rb:39:in `create'

@oneiros i think we somehow broke the user creation :(

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions