# Deep inspecting attributes

**URL:** <https://www.ruby-forum.com/t/deep-inspecting-attributes/53121>\
**Category:** Rails\
**Created:** [January 25, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/deep-inspecting-attributes/53121 "2006-01-25T21:14:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tachekent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Post date:** [January 25, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/deep-inspecting-attributes/53121/1 "2006-01-25T21:14:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tachekent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Post date:** [January 25, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/deep-inspecting-attributes/53121/2 "2006-01-25T21:23:24Z")

</div>

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
