Forum: Ruby on Rails Cascading Lists

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
44a7552ad0319082b80f27fc3397b52e?d=identicon&s=25 Jonathan Dobbie (Guest)
on 2007-05-03 23:27
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
This topic is locked and can not be replied to.