The rails scaffold generator generates MVC layers from templates located in the libties path in lib/rails/generators/erb/scaffold/templatesand from a folder lib/templatesin your project.
If you copy the source files from the railties folder to the lib folder of your project, you can configure the original generator scaffold, as Daniel Von explains on his blog .
The original Rails generator uses 5 files in the views layer:
_form.html.erbedit.html.erbindex.html.erbnew.html.erbshow.html.erb
I was wondering if there is a way to extend this behavior by adding another file to the set. like _header.html.erbor _info.html.erb(some parts that I developed).
source
share