Rails3: validate: app/models/query.rb