Skip to content

Instantly share code, notes, and snippets.

@cpappen
Last active November 7, 2017 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpappen/04eec3b8d0ce7f3995400867339a0c2a to your computer and use it in GitHub Desktop.
Save cpappen/04eec3b8d0ce7f3995400867339a0c2a to your computer and use it in GitHub Desktop.
whitelist ip on rails app for development to avoid a message "Cannot render console from ...! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255"
#config/environments/development.rb
Rails.application.configure do
config.web_console.whitelisted_ips = '10.0.2.2'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment