Can I set a display name for a database field instead of using an automatically generated one?
I have a bbe_date
field, and on the screens I use 'Best Before' as the displayed string. I looked through several views manually, but is there a better way?
This, we hope, takes effect wherever the field name is sent to the browser in a form convenient for humans. I especially think about validation errors (since there is a bit that I have not yet processed manually!) - my verification code does:
record.errors.add :bbe_date, 'not valid'
but unless I specifically intercepted this, I just see that "Bbe Date is not valid" as a validation error.
asc99c
source share