Cascading Lists


#1

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