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

后端 未结 11 1314
心在旅途
心在旅途 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:49

    You need to whitelist the 10.0.2.2 network space in the Web Console config.

    So you'll want something like this:

    class Application < Rails::Application
      config.web_console.whitelisted_ips = '10.0.2.2'
    end
    

    Read here for more information.

    As pointed out by pguardiario, this wants to go into config/environments/development.rb rather than config/application.rb so it is only applied in your development environment.

提交回复
热议问题