Hi there, in one of my templates I have the following code: <% for film in @artist.films %> <h3>films</h3> <p><%= link_to film.title, :controller => ''films'', :action => ''showfilm'', :animate_title => film.animate_title, :page => ''synopsis'' %></p> <% end %> however if I do: <%= debug(@artist) %> from the same template, then my array of films never appears. Why is that, and is there a way I can make it appear? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
I just answered that with: <%= debug(@artist.films) %> but I was wondering if there was a way to cascade through all associations? Dorian Mcfarland wrote:> Hi there, > in one of my templates I have the following code: > > <% for film in @artist.films %> > <h3>films</h3> > <p><%= link_to film.title, :controller => ''films'', :action => > ''showfilm'', :animate_title => film.animate_title, :page => ''synopsis'' > %></p> > <% end %> > > however if I do: > <%= debug(@artist) %> > from the same template, then my array of films never appears. > > Why is that, and is there a way I can make it appear? > > thanks > dorian >-- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent