Hi Elias Orozco So do you want all messages be deleted when its user deleted?If so in user model you can add like (Assuming your association is user has_many messages)
user.rb has_many :messages,:dependent => :destroy Now when you delete a user all the dependent messages will also get deleted Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---