Testing Rails applications in the life of a freelancer

Update February 13th: Join the discussion on Hacker News If you’re part of the Ruby On Rails community for a long time, you’ve probably read tons of articles about testing Rails application (less these days, though). Although there always have been diverging opinions on the matter, it seems the common wisdom was to say that […]

Continue reading →

Deploy your Rails applications like a pro with Dokku and DigialOcean

UPDATE September 19th, 2016. This tutorial has been updated to target Dokku version 0.6.5. After reading this tutorial, you will be able to: Create your own server (droplet) on the cloud using the DigitalOcean cloud architecture. (I will also share with you a link that will give you $10 credit at DigitalOcean). Install your first […]

Continue reading →

My brief rant against SPA

I know I sound like an old coot whose afraid of change, but there is something that doesn’t feel right for me with the new Single Page Application craze. It’s like all of a sudden, we’ve decided that web applications are crappy and that we want a return to traditional client/server applications. It’s a if […]

Continue reading →

Nested has_many :through

Hi (Oh my God… he just started his blog post with ‘Hi’), Did you know that as of Rails 3.1, you can have nested has_many :through clauses in your models? Here is a concrete example to understand what I mean: [ruby] class SportSchedule < ActiveRecord::Base has_many :gamedays has_many :games, :through => :gamedays has_many :results, :through […]

Continue reading →