Hi, I have a Project model and a TaskType model. Association between the two occurs through a ProjectTaskType model (I.e. a link table in the DB with foreign keys to both Projects and TaskTypes).
A Project has_many TaskTypes through ProjectTaskType, and a TaskTypes has_many Projects through ProjectTaskType. I have a vew with an embedded scaffold and want to display all TaskTypes belonging to a given Project. Can someone quide me as to how I would right the conditions for this? <%= render :active_scaffold => :task_type, :label => 'Task Types', :conditions => "select TaskTypes which are associated with @project through the ProjectTaskType" %> And can my filtering logic go elsewhere? Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
