I need to add Copyright information on top of each and every file of my Rails source code. For Eg. Just like Xcode does when you do ios development.
Like:
**********
// Copyright (c) 2012
// List of Authors
*********
I need to add Copyright information on top of each and every file of my Rails source code. For Eg. Just like Xcode does when you do ios development.
Like:
**********
// Copyright (c) 2012
// List of Authors
*********
The usual way to do this is to include a file in the base of the project called LICENSE, and include all the copyright information for all files in the project there.
It really depends on your editor of choice, which you should specify. Many editors support some sort of file templates and, as an example, here's how to do it in Rubymine.
For views, you can put it at the top of the app/views/layouts/application.html.erb
file, and that should include it in every view, except for partials (those you have to do by hand I think).
Not sure there is a way to do it automatically for anything else.. Might be wrong though.