How to override a rails generator template in a gem?

后端 未结 6 1091
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 07:18

When you want to override a generator template (without replacing the generator itself), in Rails 3 you can just drop files in appropriately named places in lib/templates and Ra

6条回答
  •  不思量自难忘°
    2021-02-01 07:48

    If anyone's struggling with this, I just got a very basic gem working using the other answers here which you can see for an example: templates

提交回复
热议问题