Tom Ha wrote:

> Solution, in case anyone still wonders (obvious for non-n00bs):
> 
> To have partials in partials (etc.), like a tree-like structure, and at 
> the same time to be able to let the user choose which partials to view 
> (which "branch of the tree" to open or close, for example in a form that 
> should be customized by the user, on-the-fly), just put the 
> "page.replace_html" code (Ajax) in the *controller*.

Yup. That's what I implied, but I could not figure out the code's actual 
intent, 
so I couldn't say that.

> (DON'T use a "button_to_function" *within* such a partial!)

Yet sometimes a button_to_function can pull in a static partial, and that's 
what 
you need... (-:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to