View Single Post
Old 07-17-2008, 09:52 PM  
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
Quote:
Originally Posted by Socks View Post
How would you do it?

PS: You have 3 scrolling frames on your website, Netscape 2 is calling
Three scrolling frames? The only site in my sig I own is adultapi, and its a temporary page until my designer gets me what I need.

I would use subversion for tracking changes.

Code:
kris@core:/var/www/mysite$ svn diff app/models/topic.rb 
Index: app/models/topic.rb
===================================================================
--- app/models/topic.rb	(revision 13)
+++ app/models/topic.rb	(working copy)
@@ -10,6 +10,6 @@
   named_scope :parents, :conditions => [ 'parent_id IS NULL' ]
   
   def self.recent(limit = 5)
-    find(:all, :limit => limit)
+    parents.find(:all, :limit => limit)
   end
-end
\ No newline at end of file
+end
kris@core:/var/www/mysite$
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote