I am always forced to make my terminal window two dual monitors wide just to see read them right. I'm not a stickler for buttery GUI's, but this is bordering retarded.
Is there a pretty print for this command?
I am always forced to make my terminal window two dual monitors wide just to see read them right. I'm not a stickler for buttery GUI's, but this is bordering retarded.
Is there a pretty print for this command?
EDIT: The answer below was packaged into the html_routes gem which supports Rails 3 and 4.
The code below was made with the current Rails 3.2.3, groups by controller and looks awesome. Remember to change the
<Your APP>
to your app name and add gem 'syntax' to your Gemfile.http://localhost:3000/rails/info/routes in the browser looks a looooot better than in the terminal.
For Rails 3, you can use :
Rails.application.routes.routes.to_a
(see my original answer)You could use Sextant to print the routes in your browser: https://github.com/schneems/sextant
Great tip. Thanks.
I prepared working version for Rails 3.0. Enjoy.