On Jan 18, 2009, at 09:34 , Free Bird wrote: > I have a class Halt. If i type Halt, the output is >>> Halt > => Halt(id: integer, troute_id: integer, seq: integer, day: integer, > arrival: integer, departure: integer, duration: integer, tnode_id: > integer, mode: string, junction: boolean, distance: integer, > created_at: > datetime, updated_at: datetime) presumably Halt is both a method Halt() and a class... we can only guess since you don't provide any code. > The database is populated. And code was working. But recently it stop > working. > If i type Halt.get, this is the output: >>> Halt.get(1) In this case you're trying to execute the #get class method on the Halt class. That's what the parser sees at least. I'm guessing (again) that you don't have a #get class method and you're instead expecting to call the #get instance method on whatever the #Halt method returns. If you want to ensure that you're calling your method, add parens: Halt().get(1) I don't think it is a good design to have an argless global method with the same name as the class. you get confusion like the above.