Let\'s say I have a Rails application deployed on Heroku. How can I display these pieces of information in my views?
There is grit installed on Heroku. So you can open the repository there using it.
repo = Repo.new(Rails.root + '.git') last_commit = repo.commits.first p last_commit.id p last_commit.authored_date