The second way works. So we'll go with that.

This commit is contained in:
2024-05-14 20:08:36 +01:00
parent be035f9e31
commit 8f9145ba54
2 changed files with 5 additions and 18 deletions

View File

@@ -5,7 +5,11 @@ Rails.application.routes.draw do
resources :virtuals, only: [ :new, :create, :edit, :update, :destroy]
end
devise_for :users, controllers: { registrations: "registrations" }
devise_for :users, :skip => [:registrations]
as :user do
get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'
put 'users' => 'devise/registrations#update', :as => 'user_registration'
end
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html