I have an full ajax app doing crud operations for contact info for one section. I was using ajax calls to edit and cancel and also 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/ ajaxshowcontact' end %> When I am trying to display the contact this: _ajaxshowcontact.rhtml. <%# = link_to_function 'Edit Contact' do |page| page[:showcontact].replace_html :partial => '/contacts/ ajaxshoweditcontact' end %> is one of 2 options. Rails is saying that it cannot allocate memory for this and it will not even display the initial page that has the 'edit' link. Is it trying to render all of the partials before the button or link is even clicked? I am trying to cut down on the ajax calls that are not neccesary. -- 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.

