Rails:覆盖twitter-bootstrap-rails的生成器?

时间:2013-04-07 09:31:37

标签: ruby-on-rails twitter-bootstrap

我是如何覆盖/自定义在twitter-bootstrap-rails gem中执行rails g bootstrap:themed [RESOURCE_NAME]时使用的模板?

谢谢!

1 个答案:

答案 0 :(得分:0)

如果您查看gem(bundle open twitter-bootstrap-rails或查看GitHub站点 - https://github.com/seyhunak/twitter-bootstrap-rails),您会看到/ lib / generators / bootstrap / themed /中有生成器模板模板。

您可以在应用中使用不同的版本来覆盖这些内容。确保使用相同的目录结构。

更新

模板需要居住在lib/templates/bootstrap/themed