Hmm.. OK I did this and I can grab attachment_types through a page.
BUT I can't grab the specific attachments in the attachment_types in a
page.. for instance if I try this:

@types = @page.attachment_types
<% @types.each do |t| %>
      <%= render(:partial => 'partial/attachment', :collection =>
t.attachments) %>
<% end %>


It looks like when I grab attachments from the type, it grabs ALL
attachments from that type, not attachments specifically associated to
that page. How can I tell it to do a :through, with a model that isn't
associated in the AttachmentType model?

-- 
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