To do what you want:
The README_FOR_APP
file is created when creating a new Rails application. That code is in rails-#.#.#\lib\rails_generator\generators\applications\app\app_generator.rb
.
To add a suffix and change the location for all of your Rails apps, you can modify the method to be:
def create_documentation_file(m)
# was m.file "doc/README_FOR_APP", "doc/README_FOR_APP"
m.file "doc/README_FOR_APP", "README_FOR_APP.rdoc"
end
Then, you need to modify the Rake documentation task to include this file rather than the old one, in rails-#.#.#\lib\tasks\documentation.rake
:
Rake::RDocTask.new("app") { |rdoc|
...
rdoc.rdoc_files.include('README_FOR_APP.rdoc') # was 'doc/README_FOR_APP'
}
Regarding the logic of separate `README_FOR_APP` and `README` files:
README_FOR_APP
, as the name implies is documentation for
your specific Rails application, it concerns
the classes and methods that you will
have written.
README
is general documention for all Rails applications describing the structure
of a Rails application and some web server settings. It's at a higher-level than README_FOR_APP
.
However...
As a tip, I would advise you to keep both files and not rename them (don't forget Rail's convention over configuration aspect). Any Rails developper will expect these files to be there, and renaming them might make things more complicated.
This convention might also be used by your IDE. For example, I use Netbeans, and the Rails project view is pre-configured to display certain files. If you move your README_FOR_APP
file to the root directory, NetBeans will not display it in project view, you will have to use file view, or modify the project view (don't know if that's even possible).