1. Using acts_as_commentable_with_threading Gem

    When I was researching the acts_as_commentable gem I came across the spin off of it that has threading. I looked around for some examples of how to set it up, but just found scattered information. I have set up a working example of the gem, acts_as_commentable_…

    on rails examples

  2. Git: Changing a Remote's URL

    I setup a repo that I use as a base for any new app that I build. Each time I use it I clone and when I do that it sets the remote url to the one I cloned it from. It's really easy to change it, but found myself…

    on git

  3. What is duck typing in ruby?

    Starting out in ruby duck typing is one of those concepts you will hear thrown around. It really is a simple concept to understand. Have no fear! A beer example is here! class Tinseth def calculate_ibus puts "lets calculate ibus with tinseth!" end end class Rager def calculate_ibus…

    on ruby fundamentals

  4. What are polymorphic associations in rails?

    According to the rails guide it is, "A slightly more advanced twist on associations". The term polymorphic association is more scary than the actual implementation of it. Time to get to it and demystify this "slightly more advanced" association. The Setup rails g model BeerRecipe name:string style:string rails…

    on rails ruby fundamentals