has_many :through

This is my take on the current shift to rich, in-browser JavaScript apps. Looking back over a few decades, this is the progression of how ...

Link: blog.hasmanythrough.com

  • gets :uniq

    blog.hasmanythrough.com 23 Oct '13, 2pm

    If you don't follow the Rails Trac commit log , you may find this interesting. Jeremy Kemper just checked in a change to enable the :uniq option for has_many :through associations. So what does the :uniq option do? The docs for the has_many options say: :uniq - if set to true, duplica...

  • has_many :through - Shifting to the client again

    blog.hasmanythrough.com 15 Mar '12, 11pm

    David, I agree it's heading there, but mostly the current rich client apps talk to custom web services. That is, you have to write code for both the client and the server. I expect there will be some standardization that lets the client code have all the custom logic. Think of a clien...

  • Symbols are not pretty strings

    blog.hasmanythrough.com 03 Nov '13, 7pm

    Symbols are one of the basic features of Ruby that give it that certain charm we all love. They aren't unique to Ruby (look at Smalltalk or Lisp), but they are a fundamental piece of the language. I'm not going to review what symbols are in this article since there are plenty of other...

  • Fifteen Protips for Conference Speakers

    blog.hasmanythrough.com 18 Apr '12, 2pm

    Do you dream of someday speaking at a technical conference? Have you spoken at a conference but felt like your journey to the podium wasn't as smooth as it might have been? Well here are a couple tips to make things go smoothly and endear you to your conference organizers. I'm writing...

  • Refactoring: be eager, not reckless

    blog.hasmanythrough.com 31 May '13, 12pm

    The illustrious Chris Eppstein recently tweeted : If some code should be refactored, stop what you are doing and refactor it. I was about to respond, but realized I had more to say than would fit in a tweet. (Waiting for someone to fix that problem!) (Then I got distracted and didn't ...

  • Agile git and the story branch pattern

    blog.hasmanythrough.com 30 May '12, 3pm

    The first thing this approach helps with is being able to make frequent commits without breaking the build or disrupting the work of teammates. Working with a centralized SCM system like Subversion can force you to choose between checkpointing your work and keeping the state of the pr...

  • A simple alternative to namespaced models

    blog.hasmanythrough.com 23 Jun '12, 1am

    A project I'm working on now is up to 57 model classes and is still growing. That's a lot of classes - welcome to domain modeling. In my opinion, the number of classes is a fair tradeoff that keeps each class simple enough to understand. In some ways it moves complexity out of the mod...

  • count vs length vs size

    blog.hasmanythrough.com 27 Sep '13, 10am

    In Ruby, #length and #size are synonyms and both do the same thing: they tell you how many elements are in an array or hash. Technically #length is the method and #size is an alias to it. In ActiveRecord, there are several ways to find out how many records are in an association, and t...


Riding Rails
has_many :bugs, :through => :rails
The Rails Way -
the { buckblogs :here }
Nuby on Rails | Ruby on Rails for Newbies
Rails Envy
Ryan Daigle
Ruby Inside: The Ruby Blog