How to disable “Cannot Render Console from…” on Rails

后端 未结 11 1287
心在旅途
心在旅途 2020-12-07 10:35

I\'m using Ubuntu/vagrant as my development environment. I\'m getting these messages on rails console:

Started GET \"/assets/home-fcec5b5a277ac7c20cc9f45a209         


        
11条回答
  •  温柔的废话
    2020-12-07 10:56

    For me, whitelisted_ips didn't seem to work in a new project. The Readme states the corresponding configuration entry is supposed to be permissions now:

    Rails.application.configure do
      config.web_console.permissions = '192.168.0.0/16'
    end
    

    https://github.com/rails/web-console/blob/master/README.markdown

提交回复
热议问题