Skip to content

Instantly share code, notes, and snippets.

@epall
Created March 22, 2009 14:28
Show Gist options
  • Save epall/83178 to your computer and use it in GitHub Desktop.
Save epall/83178 to your computer and use it in GitHub Desktop.
test_controller.rb
class TestController < ApplicationController
def rubyversion
text = `which ruby`
text += "<br>"
text += "<br>"
text += `ruby --version`
text += "<br>"
text += "<br>"
text += `gem list --local`.split("\n").join("<br>")
render :text => text
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment