Customizing the Rails console | Greg Molnar
30-Jun-2023 868
I started to deploy my latest pet project with MRSK and I realized that I miss the customizations from my Rails console on the server. And I thought it might be useful to share how I customize my Rails console, so here we go.The default Rails console is built on top of IRB, so to customize it, we need to look at IRBs documentation. The docs say that we can either create a global .irbrc in the home directory of the user, or have a project specific one in the project directory, but the home directory one will have a presedence. In my example, I keep it in the project, so I can copy it with docker to the containers when I deploy.
Customizing the Rails console | Greg Molnar #ruby #rubydeveloper #rubyonrails #Customizing #Rails #console #Molnar https://rubyonrails.ba/link/customizing-the-rails-console-greg-molnar