Do you have an idea why Client::Address.create(args) works but Client.addresses.create(args) gives an error
NoMethodError(super: nosuperclassmethod`seed=' for #<Account:0x0000aaab0b8fbf90>).
I just used Client and Client::Address to remain in the context of your article, but this is happening on models that have a one to many relationship. Help.
Without seeing code of your models I can't really help, sorry. Might be everything. Make sure that Client is connected with Address in a correct way, provide 'class_name:' attribute after has_many :addresses. Does seed method/attribute tells you something? Are you using it somewhere?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do you have an idea why
Client::Address.create(args)
works butClient.addresses.create(args)
gives an errorI just used
Client
andClient::Address
to remain in the context of your article, but this is happening on models that have a one to many relationship. Help.Without seeing code of your models I can't really help, sorry. Might be everything. Make sure that Client is connected with Address in a correct way, provide 'class_name:' attribute after
has_many :addresses
. Doesseed
method/attribute tells you something? Are you using it somewhere?