How do I use phonelib gem for a nested resource?
I am setting up telephone validation for a Lead model. Leads have a field called :phone. I'm using phonelib to validate the contents of that field. My New Lead form is nested within a second model, therefore the second model accepts_nested_attributes_for :leads. Without phonelib, my leads are saved just fine. With phonelib, I'm getting the following error in my :create action:
wrong number of arguments (given 3, expected 1..2)
Strong params are all set, and the model validations are set. Not sure what's hanging this up. Any ideas?