search for: showcontact

Displaying 1 result from an estimated 1 matches for "showcontact".

2009 Dec 06
3
link_to_function or button_to_function memory usage
...to add a contact. I am implementing a button_to_function instead of doing an ajax call to just edit/add/or cancel a contact. I am running into a memory issue using the button_to_function or link_to_function. I have this: <%= link_to_function ''Edit Contact'' do |page| page[:showcontact].replace_html :partial => ''/contacts/ ajaxshoweditcontact'' end %> and the edit page also has this for the cancel: _ajaxshoweditcontact.rhtml. <%= button_to_function ''Cancel'' do |page| page[:showcontact].replace_html :partial => ''/contacts...