There is no AND
operator in ruby.
To use AND
in a where statement you could either specify both the arguments.
@men_active_leagues = League.where(active: true, kind: 'men').order('id ASC').find_all
or you could specify it as a string
@men_active_leagues = League.where("active = TRUE AND kind = 'men'").order('id ASC').find_all