Reputation: 377
I am using rails-3.2.10 with ruby-1.9.3-head, my question is, when I run
rails s
how can I have some color in my bash terminal? I wanted to try with the ruby-debug option, but the ruby-debug gemfile only only can not be installed with 1.9.x yet.
Is there a solution?
Upvotes: 2
Views: 3503
Reputation: 5224
I tried this and it works perfect in Rails 3.2.13 and Ruby 2.0.0. You can customize colors and messages.
That solution is also in the form of a gem.
gem 'formatted_rails_logger'
Gem is better formatted but is not colorized. I prefer the first solution.
Regards!
EDIT:
Try gem meta_request and Rails Panel chrome extension. You can see the server log in your browser well organized, showing params, SQL queries, etc.
Upvotes: 4