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 :
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.
RubyMIT