devise_for :users,
controllers: { registrations: "users/registrations" }
class Users::RegistrationsController < Devise::RegistrationsController
def create
super
if resource.save
resource.create_profile
end
end
has_one :profile, dependent: :destroy