Stefano Crocco wrote:
> Are you sure find_by_name is a class method and not an instance method 

Yes, I'm positive:

>> SomeRailsModel.respond_to? 'find_by_name' 
=> false

>> SomeRailsModel.find_by_name 'foo'
=> #<SomeRailsModel:@name='foo'>

M.

-- 
Posted via http://www.ruby-forum.com/.