hi,

I have problems with default values. I don't know whether I'm stupid or doc is not good (you're not supposed to answer ) but I spend a lot of time for trivial things.

According to Wiki RailsBestPractices, it's a good idea to add a default value like that:

PHP Code:
def self.custom_findid_to_find )
    ...
end 
When I try to add a default value, I get an error:
[edit: the query is ok without = 0 default value ]
PHP Code:
def self.find_query(categorytypecity_idprice_min 0price_max)
    
find(:all,
    
sql conditions coming here...)
  
end 
parse error, unexpected ')', expecting '='

Did I miss something?