Links
Version Number
Categories
Version Number
Version number gives you an easy way to get the Subversion revision number in your apps.
It has a Capistrano hook (automatically installed) to save the SVN revision on each deploy.
Anywhere in your app, you can use the constant APP_VERSION to give the version of your code.
Locally, APP_VERSION will return ‘local’.
After your next deploy, the APP_VERSION on the server will return the revision reported by your source repository.
In your views, you can also use the helper method:
<%= app_version %>
Vitals
| Home | http://source.collectiveidea.com/public/rails/plugins/version_number |
|---|---|
| Repository | http://source.collectiveidea.com/public/rails/plugins/version_number |
| License | Rails' (MIT) |
| Tags |
capistrano collectiveidea helper revision subversion version versionnumber
|
| Rating | (1 vote) |
| Owner | Daniel Morrison, Collective Idea |
| Created | 2 April 2007 |

