RailsCasts Pro episodes are now free!

Learn more or hide this

muyiwaoyeniyi's Profile

GitHub User: muyiwaoyeniyi

Comments by

Avatar

easy fix...got me disturbed for 30mins..I added :dependent => :destroy...maybe you want to add this to you documentation just to be prevent another person (newbie i suppose) from running around.

has_many :phones, :dependent => :destroy
accepts_nested_attributes_for :phones, allow_destroy: true

Thanks. Awesome gem!

Avatar

I just tried using you gem...it works great but I cant delete child objects even after setting allow_destroy: true....pls do you have any sugestions?