Paco Guzman wrote: > You may try: > > usertodelete = req.users.find(params[:id]) # Get the user to destroy > usertodelete.destroy >
I do not want to delete the user .I want to delete the user entry in the requesttargetuser table. I Found out a way to do this req=Request.find(:last) user=User.find(:last) req.users.delete(user) Thanks Paco . -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

