OK I think I found the solution:

@types = @page.attachment_types

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


didn't know I could still call the find_all_by_page_id after I called
it from a 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