Skip to content

Instantly share code, notes, and snippets.

@benolee
Created April 25, 2013 19:06
Show Gist options
  • Save benolee/5462259 to your computer and use it in GitHub Desktop.
Save benolee/5462259 to your computer and use it in GitHub Desktop.
$ rails r 'File.write("./viz.html", Rails.application.routes.router.visualizer)'
$ ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8080, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
$ open "http://localhost:8080/viz.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment