[Rails] Re: Selective delete from join tables

2013-05-31 Thread Robert Walker
Dave Castellano wrote in post #1110796: Hi, I'm learning rails and have run into what for me is a difficult problem. I have the following associations with a galleries_pictures and a pictures_questions join table: class Picture ActiveRecord::Base has_and_belongs_to_many :questions

[Rails] Re: Selective delete from join tables

2013-05-31 Thread Dave Castellano
P.S. None of this code has been tested. Just wrote it by memory. Thank you. I get it. It worked well with a couple of small tweaks. ...wish I could do that from memory :-) Thanks, Dave -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to