DEV Community

n350071🇯🇵
n350071🇯🇵

Posted on

 

Rails I18n model name with namespace

config/locales/models.en.yml

en:
  activerecord:
    models:
      user: User
      properties/building: Building
      properties/unit: Unit
      properties/room: Room

if you have following models

class Properties::Building < ApplicationRecord end
class Properties::Unit < ApplicationRecord end
class Properties::Room < ApplicationRecord end

Top comments (0)

Timeless DEV post...

How to write a kickass README

Arguably the single most important piece of documentation for any open source project is the README. A good README not only informs people what the project does and who it is for but also how they use and contribute to it.

If you write a README without sufficient explanation of what your project does or how people can use it then it pretty much defeats the purpose of being open source as other developers are less likely to engage with or contribute towards it.