Remove association

Hi all,

I have a user has many numbers relationship.

When I query User.find(:all, :include => :numbers) I get all the users
with their numbers. I’m looking for a method that removes the number
from a user eg users[0].numbers[1].delete . I basically want ot remove
the association but I’m unable to find such a method.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs