DEV Community

Discussion on: Sensitive data encryption in Rails

Collapse
 
kudapara profile image
Kudakwashe Paradzayi

Do you have an idea why Client::Address.create(args) works but Client.addresses.create(args) gives an error

NoMethodError (super: no superclass method `seed=' for #<Account:0x0000aaab0b8fbf90>).
Enter fullscreen mode Exit fullscreen mode

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.

Collapse
 
rbglod profile image
rbglod

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?