Hi
    In controller suppose action is replace_this then create a file 
replace_this.rjs in the same folder
Now in action write
render :action => 'replace_this.rjs"

And open replace_this.rjs
page[:div1].replace_html :partial=>"partial_here"}

      Above you can use :inline, etc instead of :partial
Look 
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html

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