Ruby oci8 with Rails 3.1 on Ubuntu

12.08.11 Posted in Blog by admin

ruby-oci8 is the gem to use Oracle as the database for your Rails 3.1 application. Getting it to work can be a ‘little’ tricky. In this post, I’ll try to summarize how to get it to work on Ubuntu for a Rails 3.1 application. Well, let’s start with the basics. Before you try your luck [...]


Dynamic is_ ? methods for boolean attributes of a model

08.24.10 Posted in Blog by admin

A very common pattern observed in Rails models is a series of “is_{attribute}?” instance methods. Here, ‘attribute’ is usually a boolean column. I got tired of defining these similar methods. And adding to the misery, if the model structure changes to add another boolean field, you need to define another clone of the same method! [...]


ActiveRecord Object to Hash assignment in Ruby on Rails

07.13.10 Posted in Blog by admin

I find a frequent scenario in Ruby on Rails code base. A local hash variable is assigned a partial subset of an ActiveRecord object, or worse the variable gets the entire AR object. And may be you don’t already do it the way I have seen it, but its still worth discussing, being as frequent [...]


Ruby on Rails Must follow RSS feeds

05.20.10 Posted in Blog by admin

Ruby on Rails community is fast growing. Too much is happening, and too fast. Its important to keep ourselves abreast of the latest in our community. Following are some RSS feeds I follow religiously [ well, I try]. So configure your favorite Reader and put on your reading caps: Always begin by looking at RoR [...]


ShareSend

08.02.09 Posted in Portfolio by admin

This is an online file sharing application which gives the user unlimited storage space using the cloud storage provided by integrating Amazon S3 service along with this. This application also includes the PayPal payment gateway to make secure payments between the user and the service provider. This was developed on Ruby on Rails which makes [...]