search for: pagepart

Displaying 3 results from an estimated 3 matches for "pagepart".

2006 Oct 03
0
WebObjects-style Object Cache
...that it should automatically know based on the way that "parts" is implemented in Page. Here''s what "parts" looks like: (Note this is really what I surmise parts looks like because it is generated by the fact that Page "has_many :parts, :class_name => ''PagePart'', :dependent => :destroy") def parts PagePart.find(:all, :conditions => "page_id = #{self.id}") end So, the find method creates an SQL query that find all the page_parts that belong to this Page and returns them in a nice array. But, it should KNOW that Pag...
2006 Jan 13
0
Saving ActiveRecord objects that are composed of other objects
I''ve got two pretty simple model objects Page and PagePart. Page has_many PageParts and PageParts belong_to Pages. When updating PageParts for a specific Page I''d like to be able to do: page.parts[x].content = ''changed'' page.save and expect that should the validation pass the changed page part would be saved as well, b...
2007 Sep 24
1
IE memory leak and update()
Hello I have following code in my project and it''s a question for me if it causes memory leaks in IE. pagePart = getSearchResult(); // retrieve part of the page w/ search result from server $(''container'').update(pagePart); $$(''#container a'').each(function(a) { Event.observe(a, ''click'', ...); // handlers for link clicks }); As you see it just takes som...