3 つの基本的な条件でヘルパー メソッドを作成しようとしています。現在のユーザーを結果から除外しようとしている 3 番目のものを追加すると、エラーが発生します。
def male_soccer_players
return User.where(:gender => "male", :soccer => true, :id != current_user.id)
end
エラーは
app/controllers/application_controller.rb:12: syntax error, unexpected ')', expecting =>