Jon Kinney - Home > Blog > Monthly Archives

Easily convert a has_and_belongs_to_many to a has_many_through in Rails (for: MS SQL Server)

-Posted Mar 06, 2010 By: Jon Kinney

One of the things that bugged me about Rails when they made the move from only having has_and_belongs_to_many (HABTM) to also including the has_many_through (HM:T) join model option (which is now the preferred way to go), was that you needed to write your own code in the model to get the associations to work properly. With the old HABTM implementation this was handled for you.

Continue Reading…

News & Events()

Tech Review: Web Design For Developers - June 2009

A friend of mine in the web development community is releasing a book called "Web Design for Developers: A Programmer's Guide to Design Tools and Techniques". I was asked to do a tech review of the book and will be sharing my thoughts as well as some cool info presented in the book in a short series of upcoming blog posts. If you want to grab a beta copy of the book head over to my favorite publisher The Pragmatic Programmers.

First Class Audio Production - March 1st 2009

My most recent studio project was mixing and producing the latest a cappella album to come out of Eau Claire, WI. Until Proven Guilty is the Innocent Men's 4th studio album and marks a huge leap forward in recording and production quality for the group. Check back for demos of the mastered songs very soon! http://theinnocentmen.com.

Twitter Feed (follow me)