Plugins - Version Number

StarAdd to favorites

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 %>

Daniel Morrison, Collective Idea

http://source.collectiveidea.com/public/rails/plugins/version_number

http://source.collectiveidea.com/public/rails/plugins/version_number

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?