Sto riscontrando un problema durante il tentativo di distruggere un'istanza di record attiva.Rails: errore costante non inizializzato su Active Record destroy
Esso prevede le seguenti AR
class Client < ActiveRecord::Base
has_many :phone_numbers, :dependent => :destroy
has_many :email_addresses, :dependent => :destroy
has_many :user_clients , :dependent => :destroy
has_many :users, :through => :user_clients
end
class UserClient < ActiveRecord::Base
belongs_to :user
belongs_to :client , :dependent => :destroy
has_many :instructions, :dependent => :destroy
end
Quando si esegue un distruggere in un'istanza client mi è riconosciuto il seguente errore
@dead_man = Client.find(params[:id])
@dead_man.destroy => uninitialized constant UserClient::Instruction
Sono veramente non so dove questo errore proviene. Qualsiasi aiuto è molto apprezzato!