Beautify rails console

step1

install awesome_rails_console & hirb-unicode'

gemfile
gem 'awesome_rails_console'
gem 'hirb-unicode'

step2

bundle install

step3

create a file name call .pryrc in the project's root directory

step4

edit .pryrc file & save

YOUR_APP_ROOT/.pryrc
require "hirb"
require "hirb-unicode"
extend Hirb::Console

step5

rails c in your iTerm
type table before your command(model)

table User.all

comments powered by Disqus