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*.

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

Tom
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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