Deep inspecting attributes


#1

Hi there,
in one of my templates I have the following code:

<% for film in @artist.films %>

films

<%= link_to film.title, :controller => 'films', :action => 'showfilm', :animate_title => film.animate_title, :page => 'synopsis' %>

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


#2

I just answered that with:
<%= debug(@artist.films) %>

but I was wondering if there was a way to cascade through all
associations?

Dorian M. wrote:

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