RailsCasts Pro episodes are now free!

Learn more or hide this

John's Profile

GitHub User: johnrails

Comments by John

Avatar

Ryan, great revision to a classic railscast! quick question, are you using a different file browser for Textmate? I think i remember you saying something about it in a different episode, but forgot which one.

Avatar

this is almost exactly what i needed. Thanks, Ryan. One question though. I have a few models, and they can has_many :messages, but i'm creating these messages in an after_create callback, and not via a form, so i'm doing a Message.create in my callback, so question is in my messagable_id column do i simply put the id of the instance passed to the callback and messagable_type is just the class name?