Its like a Glade (plug it in)
So, due to needed some specific functionality today (June 10th, yes I have been slow at getting this up), I made a plug-in for rails! The plug-in I made was quite simple, but it solved a great problem for me. What I needed, was a way to check if an object has any associated records, because we didn’t want to allow the deletion of it if it was associated with anything. So, I asked my boss about how to go about fixing this problem the easiest way, and he suggested that I write a plug-in, and away I went.
Now, being as I had never written a plug-in before, I did get a bit of help with it. So, my boss and one of my co-workers did a lot to help me with writing this plugin, but now that I have one down, if the need for another should arise, I have a much better understanding of how to go about it.
Well, I shall make the bloggers promise finally now, as most people assumed I would. I shall update my blog much more often than what has happened previously.
Also, if you want to take a look at the plug-in, and give me feedback, or have any ideas of how to expand it feel free. The plugin can be found here.