So you created a migration to add a table that you thought you were going to need. You also ran that migration so that table is in your database. Now, you don’t plan to use it anymore. How do you remove that table?
For a long time, I delayed learning Ruby as I didn’t know how to debug Ruby code. Coming from a .NET background, I was used to debugging C# in Visual Studio, with its powerful support of stepping in and out, dragging breakpoints, changing variables on the fly, and a myriad of features that made life easy for a C# programmer.
One of the best ways to understand any codebase is to read the tests, and Rails is no exception. In this post, we will learn “how to run the tests” included in the Rails codebase.
It’s been a while since I posted on the blog. Lots of things have happened in the last couple of months, and it’s only now that I have some breathing room to start writing again. So, this is what I’ve been up to for the past couple of months.
I’ve been working exclusively with .NET, Windows, and PowerShell for the past five years. As I make the transition to the wonderful world of Ruby and Rails, I realize that my Linux skills are virtually non-existent, and to become a good Rails developer, I need to understand Linux.
I tried learning
vi quite a few times in the last several years. Each time, I gave up after learning the basics. Being a Windows .NET developer, I just couldn’t find that many use cases for it. On the handful of occasions I found myself editing files on my MacBook,
nano was good enough. So I never really learned
The Ruby interpreter executes each line inside an object - the
self object. Here are some important rules regarding
Here’s a neat trick I learned today.
Though they might look the same, the Proc and Lambdas have few differences.
A Binding is a whole scope packaged as an object. It allows you to encapsulate and carry the scope around. Later, you can execute a piece of code in the context of that binding, using