Category Archives: Rails

Rails mentoring

A great way to learn is by teaching others. Why? Because explaining solutions to others gives you a greater understanding of the problem and the solution itself. I have never had any opportunities to really mentor anyone before. Recently, I … Continue reading

Posted in Programming, Rails | Tagged , | Leave a comment

Install mysql, pg gems with bundler 0.9.x

If you use ruby on rails, at some point you have to install mysql and pg gems (no offences to sqlite) and for some reason I keep forgetting the whole install procedure. Silly me! This post is dedicated to the … Continue reading

Posted in Rails | Tagged , , , | Leave a comment

Rails3

Rails3 pre has been out for a while and a beta version is due soon. A lot has changed in Rails3. The structure, the way the plugins(yes activerecord is sort of a plugin now) work. To cut to the chase, … Continue reading

Posted in Rails | Tagged | Leave a comment

Facebook, Facebooker gem and ssh-tunnel

Well, it was long hours of endless frustration and little fun, I tell you. That is how I spent most of my saturday trying to follow the instructions to create a ssh-tunnel so that I could test facebook application as … Continue reading

Posted in Programming, Rails | Tagged , , | Leave a comment

IRB on roids

Any ruby developer knows about the interactive ruby shell or in short irb and I am quite sure they use it everyday for quickly testing little scripts out. And Rails offers its own console which is basically irb with rails … Continue reading

Posted in Rails, ruby | Tagged , | Leave a comment

rspec_rails is awesome

It is only when one has to muck about with other mocking libraries one realises how cool rspec_rails is? It bascially provides you so much “rails” functionality out of the box that mocking and stubbing feels like a walk in … Continue reading

Posted in Rails, rspec | Tagged , | Leave a comment

*casts

I wonder did Ryan bates start a revolution by doing (RailsCasts) his short videos on various ruby concepts because there is a BDDCasts and today I saw GitCasts on Git’s main site. It is in the same fashion a collection … Continue reading

Posted in Git, Rails | Tagged , , | Leave a comment

initialize method in ActiveRecord::Base

I spent quite a few hours trying to figure out why User.new (where user is a model) would not use the virtual attributes defined in the model class. Virtual attributes are the ones without a corresponding column in the table. … Continue reading

Posted in Rails | Tagged | Leave a comment

Clearance

My patch to refactor one of the modules in Clearance was merged into master today. I feel ecstatic.

Posted in Rails, gitHub, ruby | Tagged , , | Leave a comment

Cygwin, RSpec on Windows Vista

I have turned into an early adopter for some reason, so few weeks back when I had the opportunity to use Rspec to do some TDD style of development…I literally jumped on the idea. But the adoption was not that … Continue reading

Posted in Rails, TDD, Windows | Tagged , , , | Leave a comment