Custom model attribute (column name) title in Ruby on Rails

后端 未结 1 929
予麋鹿
予麋鹿 2020-12-21 05:12

Can I add custom model attribute titles, so forms could automatically render them instead of \"prettied\" column name?

For example I apply some method in my model, w

相关标签:
1条回答
  • 2020-12-21 05:46

    Sounds like what you're really looking for internationalization.

    Check out Rails Internationalization.

    As with most things in Rails, it's a pleasure :)

    0 讨论(0)
提交回复
热议问题