The scaffold generator in rails generates the MVC layers from the templates located in lib/rails/generators/erb/scaffold/templates
railties path and from the lib/templates
folder in your project.
If you copy the original files from the railties folder to your projects lib folder, then you'll be able to customize the original scaffold
generator, as Daniel Fone explain in his blog.
The original Rails generator uses 5 files in the views layer:
_form.html.erb
edit.html.erb
index.html.erb
new.html.erb
show.html.erb
I was wondering if the there is a way to extend this behavior by adding another file to the set. like _header.html.erb
or _info.html.erb
(some partials that I've design).