Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created December 3, 2008 20:54
Show Gist options
  • Save wjessop/31685 to your computer and use it in GitHub Desktop.
Save wjessop/31685 to your computer and use it in GitHub Desktop.
if @location.precision == 'country' and ['UK', 'US'].include? @location.country_code
redirect_to '/'
flash[:message] = 'Please narrow your search criteria!'
return
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment