Utilizing Rails Console

Pledge Davis
2 min readMay 23, 2021

While building out applications with Ruby on Rails I always found myself having to quickly manipulate the data in my database or just find errors in general and more. In this article, I’m going to explain how I make use of the Rails console.
What is Rails Console
Rails console is an IRB shell loaded with rails environment or in other words a great place to test out code quickly. Rails console is accessible through the CLI and does not have to start the browser for use. Not only is the Rails console helpful for testing code but a great tool when needing to query the database.
How to use it
To start using the…

--

--