Closed Inkybro closed 4 years ago
I just realized that the behavior I was looking for already exists via I18n. I've never really messed much with localization so I wasn't aware of this lol. This ended up being a nice learning experience.
Still, we could add a raw_messages option for those who need it. I'd be happy to open a new PR if desired, just let me know!
This is my attempt at some functionality including that described in #15
I just wanted to take a quick crack at it, so this may not at all be usable, and it may introduce more problems than it solves, I'm not sure.
Let me know what you think, @leastbad (or anyone!) Looking forward to some feedback.
P.S. Sorry, went a little haywire on the code :P
Usage example:
This results in messages like
Email address can't be blank
foremail_attributes[:address]
, andcan't be blank
formobile_attributes[:number]
.