Ruby の標準メソッド。nilの場合のみtrueを返し、それ以外はfalseを ... @users = User.all if @users.present? ... else puts "no users" end.
確定! 回上一頁