I have a user model that has many photos and those photos have many tags.
My routes:
resources :users do
resources :photos do
resources :tags
end
end
My view:
<%= @user.photos.tags.count %>
I don't know how to retrieve all the tags a user has, since it's a 2nd level nested resource. Any idea? Thanks guys!