I’ve also thought a bit about this but I havn’t come up with anything concrete yet.
I’ve used check boxes with observe_field to hide and show and this worked ok.
there is like a heading that you can click to show the relevant part of
the form. Like personal information in a user form.
Although required data I don’t really hide.
I guess the way I’m thinking at the moment is that anything that is not
a required field, I put in a fieldset (or many) and show it with
required I use an observe_field to check when the right conditions are
reached to show it. I’m still not completely sold on this idea
though. All that hiding and showing could get tedious for the
I’ve used RJS up to this point for conditional logic, but I’m beginning
to think that a pure client side js option would be the way to
go. It would be way more responsive, and unless there is really a
need to go to the server, it just seems like a waste. You can
make use of the rails helpers to generate the js for you.
I’d still like to find a way to use in_place editors though…
I hope this may give you some ideas…