why is it trying to save to ad_options (id,user_id,option_id) ... shouldn't it be trying to save to user_options?
On Fri, Feb 20, 2009 at 10:58 AM, fmh <[email protected]> wrote: > > hello, > > i have 2 has_many association user and options. > > a user has_many options and options has_many users > > class User > has_many :options , :through => :user_options , :source => :option > > class Option > has_many :users , :through => :user_options ,:source => :user > > now in form , i can see the check boxes options , but when i try to > update or create a user , the options can't save in table ad_options > (id,user_id,option_id) but if i remove the id from table and make > has_many_and_belongs_to it work. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
