In Ruby, how would I return true if a string is not in an array of options?
# pseudo code do_this if current_subdomain not_in [\"www\", \"blog\", \"foo\", \"
You can try exclude? method instead of include?
exclude?
include?
Example:
do_this if ["www", "blog", "foo", "bar"].exclude?(current_subdomain)
Hope this help...Thanks