I can’t find how to have generated files contain a header (with copyright info, etc.) in Rails 2.3.
I’d like all files generated automatically by the Rails Generator to have this header at the beginning of the file. How to do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could run a rake test to add the headers to all the files. Check out how it works on the Annotate gem (http://github.com/ctran/annotate_models). You’ll likely have to run it on all your .rb files, but the main idea sustains.