how to render an action in page.replace_html?

Suneeta Km
2008-03-13T07:28:10Z

Hi all...

 I have an action show_primary_contacts_edit in ci controller, that
renders
html. I have another action show_contacts_page in ci controller, that
returns RJS.

I want to replace a div "contacts_div" specified in
show_primary_contacts_edit.rhtml with the action
show_primary_contacts_edit. I wrote the code for this in
show_contact_page.rjs as:

page.replace_html "contacts_div", render(:action =>
''show_primary_contacts_edit''), :object => @contacts

The div is replaced. But no contents are displayed. I think the render
action in page.replace_html is not working.

How can i replace the html by the contents in an action?

Anybody please help me to solve this.

Thanks in advance
Suneeta
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---