-1
에
내 코드는이업데이트 데이터는 MySQL의
Profile.update_all(["is_active = ?, name = ?, geo_lat = ?, geo_long = ?, radius = ?, search_option = ?", 1, params[:profile_name],'null','null','null','st'])
이지만
geo_lat = 0
및
를 할당 내 데이터베이스 구조 기본값에서geo_long = 0
모두 에 대한 null로, 나는 나
은 "????? = is_active = 이름 = geo_lat = geo_long = 반경 = search_option?"이 'Profile.update_all를 ([시도 1 PARAMS [: PROFILE_NAME]을 전무, 전무 , nil, 'st'])' – benchwarmer
감사합니다. –