Thanks for the ideas Rupert,

I have not really done much with filters so I might think about that.
Not sure If I understand entirely what you are trying to do though.

The queries are not too much of a problem as I can inject an
organisation_id into them and I have covered off the relationships by
creating a super class for all the tables with a
"belongs_to :organisation"

The bigger problem is to ensure that all the tables get the
organisation_id set on create. I tried to set the organisation_id in
an Activerecord callback in the superclass of all the  models but I
cant access the organisation id from within the model.....

George

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to