You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and phony_rails will automatically normalize the string and save it into the table?
I seem to be missing something because no normalization is happening. Moreover, if I give it a clearly wrong phone number, e.g. User.first.update_attribute :phone_number, '1111', the commit is still successful.
Assuming I follow the README, am I supposed to be able open the rails console (
rails c
) and executeand phony_rails will automatically normalize the string and save it into the table?
I seem to be missing something because no normalization is happening. Moreover, if I give it a clearly wrong phone number, e.g.
User.first.update_attribute :phone_number, '1111'
, the commit is still successful.In app/models/user.rb, I have:
Thanks!
The text was updated successfully, but these errors were encountered: