Hi, I''m going to add some functionality to my application. I need to replace two page''s elements with each other. All works fine, but I would like to refresh only changed elements, not all on the page. I think ajax should hel me but I have a problem with rendering the replaced elements. In the .rjs file I have: page.replace @photo1.id.to_s, ''<h1>test</h1>'' and this works - it pretty replace appropriate element with given html string and also render the page correctly. But this one, doesnt work at all. page.replace @photo1.id.to_s, :partial => "replace2" In the _replace2.rhtml I have a temporary text like: <h1>test</h1> Does someone know what could be the reason of this? Why :partial makes that nothing is rendered? Thanks in advance for any answers. -- RaW --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---