# Cascading Lists

**URL:** <https://www.ruby-forum.com/t/cascading-lists/103299>\
**Category:** Rails\
**Created:** [May 3, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/cascading-lists/103299 "2007-05-03T23:27:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [May 3, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/cascading-lists/103299/1 "2007-05-03T23:27:34Z")

</div>

user has\_many :jobs  
job has\_many :frame\_sets belongs\_to :user  
frame\_set has\_many :render\_jobs belongs\_to :job

So, I have the standard list page that shows a user’s jobs (well, close  
enough). I’d like to have an AJAXified interface where one clicks on a  
job to display all of its framesets and then one clicks on a frameset to  
show all of its renderjobs

- job
- job
- job

then  
+job  
+job  
  
-fs  
-fs  
+job

then  
+job  
+job  
  
-fs  
  
=rj  
=rj  
-fs  
+job

Is this even possible? I’m really hoping that there is some really  
slick rails way of doing this, but I have no clue how to start. My  
brain is thinking along the line of creating a \_list\_fs.rb and  
\_list\_rj.rb that could somehow be rendered dynamically, but I’m not  
really sure how to do this.

Thanks in advance.

Jonathan
