Thanks, to make sure I get what you are saying.... If I then use acts_as_proxy to bring all of a's and b's attributes into the scope of a_b it appears that its just a has many to b's. One can detect I guess that you know which end you are coming from "a" or "b" and configure the controller accordingly some what dynamically ?
Searching the AS source, you only get the :add_existing, and :remove_existing actions added implicitly in a habtm scenario. Is it "legal" to add then to the config.actions in the controller setup manually ? What I don't get is that the a_b may not exist ? so do I "build" it and only save it when at least one b is added to the relationship ? Is is possible to give me a larger example ? It seems that this is somewhat of a work around; I'll give it a go! In the long run it would be good if AS supported this specifically from an AS controller in the context of either A or B as this would be simpler from a setup perspective. The more complex the AS setup is one begins to start reaching the point of diminishing returns as the barrier to entry is higher for something that is conceptually a simple need. Thanks a gain for responding.... -Simon On Apr 17, 4:29 pm, Kenny Ortmann <[email protected]> wrote: > He is saying to create a controller that does this and you can change all of > the settings to make the user think he/she is viewing a page for A > > So when you create a new instance you are actually creating an instance of > the a_b model > > class AsController < ApplicationController > active_scaffold :ab do |config| > end > end > > On Tue, Apr 14, 2009 at 8:21 PM, simonS <[email protected]> wrote: > > > Not sure what you mean by that ? Sorry, please could you elaborate on > > your point a little more as I'm obviously missing it. > > > I'm not sure how this relates to my issue in that AS seems to support > > HABTM but not has_many :through in regard to many-to-many > > relationships and Add/Remove existing functionality. > > > Thanks ! > > -Simon > > > On Apr 13, 2:25 pm, "mr.gaffo" <[email protected]> wrote: > > > When doing many to many in AS you want to work on the joiner table and > > > make it look like the joined table. > > > > On Apr 9, 12:15 am, simonS <[email protected]> wrote: > > > > > And help of pointers greatly appreciated.... > > > > > On Apr 7, 4:39 pm, simonS <[email protected]> wrote: > > > > > > Is anyone out there ? > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
