Version Number plugin

Plugin details

Version number gives you an easy way to get the Subversion revision number in your apps.

Repositoryhttp://source.collectiveidea.com/public/rails/plugins/version_number Author Daniel Morrison Tags Version LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://source.collectiveidea.com/public/rails/plugins/version_number

You're ready to go! 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 %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 9 months ago