I'm a noob having a hard time, and it's probably really simple. Here's the way it's set up: Client has many Bins Bin belongs to Client In my Client show view I have it render a partial that lists all the records in Bin associated with Client.
I need to have a destroy link for each of the Bin records. Right now I have it configured in my Bin partial as: <%= link_to("Delete", { :action => "destroy", :id => @bin }, :confirm => "Are you sure?", :method => :delete) %> This just throws back an error saying that there is not a Client with that id. I can't figure out how to tell it to delete the bin not the client with that id. Any helpful suggestions? Cheers. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---