Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: chrishawk
I ran into the same method. I have a project model with many conflicts through project_conflicts. I want to isolate conflicts to the user that generates them though.
My solution was to add an after_create callback on the join model that updated the newly generated conflict object with the project's user_id. This seems to be working since the join belongs to both and is created last.
Thanks for that. I think this will fix an issue I'm having with IE10 playing audio on jPlayer from S3. One question though - where in the fields order do you put the content type field? I know order matters and I've tried every combination to no avail. Any thoughts?
Awesome episode! I was wondering though, how might you handle AND statements for searching on a has_many association? The OR (contains any) is simple enough, just an IN statement. I'm curious how this might handle the other situation.