I have a railway 3 project where I'm overriding some scaffold templates. Add a new template to lib / templates / erb / scaffold and add the lib path to my own path in config / application.rb (see Rasilscasts # 216).
Now, I want my work package in a gem (I am new to gems ...)
I did not know how this can be accomplished in a gem is.
Looking at generators.rb, I think the template is a configuration for DIR:
templates_path.concat config.templates templates_path.uniq!
But I'm sure how to use it.
I fear not thinking from me a gem (or even if I can do this)
So my question is, how can I accomplish this with gem?
In your "text">
your autoload_path
you add the lib
directory of your gem (though I think it should be done automatically). If you provide some code excerpts, maybe I can give more specific advice, though
Comments
Post a Comment