DEV Community

Samala Sumanth
Samala Sumanth

Posted on β€’ Edited on

4 2

Make up for Rails console

Peeps!!!! i felt that i should have done this earlier... Being a ROR dev i really feel uncomfortable to examine this default rails console. A linter or formatter for this problem might be a solution. Now comes the magic..scroll bottom !!!!
Alt Text
##### BOOOM #####
Alt Text

Just follow these 3 steps and make the magic happen!!!

  • Just add awesome_print gem in development group in Gemfile which is located in root path of your application.
group :development do
   gem 'awesome_print'
end
Enter fullscreen mode Exit fullscreen mode
  • Add this code block in by doing vim ~/.pryrc
require "awesome_print"
AwesomePrint.pry!
Enter fullscreen mode Exit fullscreen mode

and save it by :wq!

  • This file is called when our rails console starts. so no need of running source ~./pryrc

Here you go.. just play around rails console now . PEACE
For more details you can refer documentation https://github.com/awesome-print/awesome_print

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (2)

Collapse
 
sowmyasamala profile image
Sowmya Samala β€’

Haha this seems simple now!

Collapse
 
nikhil_devarasetty profile image
Nikhil Devarasetty β€’

power packed my console now, Thanks a lot mate. Great help keep goingπŸ‘

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post β†’

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay