ActiveScaffold uses the ERD that your models specify.  The below is an
example of how do the example that you want.  If this doesn't work for
you feel free to post an example app somewhere, preferably on www.github.com
so someone could see what is going on.

class Group < ActiveRecord::Base
  has_and_belongs_to_many :users
end

class User < ActiveRecord::Base
  has_and_belongs_to_many :groups
end

class GroupUser < ActiveRecord::Base
  belongs_to :user
  belongs_to :group
end




On Jan 10, 3:18 am, "Ward W." <[email protected]> wrote:
> It is possible to have ActiveScaffold support optional, many-to-many
> relationships?
>
> For example,  I have:
>
> A [0..*] --- [0..*] B
>
> A __may__ have a relationship to B.
> B __may__ have a relationship to A.
>
> It appears that the ERD expected is:
>
> A [1..*] --- [1..*] B
>
> At present, whenever using A controller, if I do not enter anything
> for B I get an error indicating I need to fill in B.  How can make
> entering B optional?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to