this Rails 3.0 engine adds a /sha page that shows the git sha of the deployed code. Works also on heroku; supports :html, :json, and :xml formats.
Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
doc
lib
test
.gitignore
CHANGELOG
Gemfile
MIT-LICENSE
README.markdown
Rakefile
show_sha.gemspec

README.markdown

Include this gem in your Rails project, and /sha will display the SHA of the app code revision git SHA.

in Gemfile :

gem 'show_sha'

Results :