Thanks for your help, but I'm not sure where classes go. I've tried copying this code into the tutorials_controller:
def self.ordered_by_position find :all, :order => 'position' end But it still has this error: undefined method `ordered_by_position' I assume this is because I have either put this code in the wrong place; of need to put it in a different place WITH this bit: class Tutorial < AR::Base (and of course the extra end).. I'm really sorry for being such a pain, Thanks In Advance, Joe -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.