I want to store some information about my rails application, like a version number. I am new to rails and I’m sure there is some sort of convention for doing this. What is the best method of doing this, maybe the environments file?
I want to store some information about my rails application, like a version number.
Share
not sure if it is ‘best practice’ but I also put mine in the environment.rb as a constant
and I am using SVN source control with a propset to update the revision number in the file upon checkin
the only downside to this is that you must modify this file to get the revision to update, regular commits to other files will not cause the update
for display in the view
kinda funky but it works
info on svn propset svn:keywords “Revision” – if interested?
http://blog.taragana.com/index.php/archive/how-to-add-revision-number-id-automatically-to-subversion-files-in-two-simple-steps/