app/models/admin_user.rb
def no_new_users_on_saturday
		if Time.now.wday == 6
			errors[:base] << "No new users on Saturdays."
		end
	end
#Errors not related to a specific attribute
#can be added to errors[:base]
Errors not related to a specific attribute
can be added to errors[:base]
Errors not related to a specific attribute can be added to errors [ : base ]
def no_new_users_on_saturday
		if Time.now.wday == 6
			errors[:base] << "No new users on Saturdays."
		end
	end
def no_new_users_on_saturday if Time . now . wday == 6 errors [ :base ] << "No new users on Saturdays." end end
Errors not related to a specific attribute
can be added to errors[:base]
Errors not related to a specific attribute can be added to errors [ : base ]