Rack-Bug Panels Not Displayed in Rails Application

I installed Rack-Bug for my application on Rails, but cannot display panels.

project: http://github.com/brynary/rack-bug additional instructions: https://github.com/brynary/rack-bug/wiki/security even more instructions: Rack Bug Setting the question. Server does not start (documents really suck for this)

Above:

I added config.middleware.use 'Rack :: Bug' to config / environment / development.rb. I added a config / initializers / rack_bug.rb file containing the following:

require 'rack/bug'
require 'ipaddr'

ActionController::Dispatcher.middleware.use Rack::Bug,
  :ip_masks   => [IPAddr.new('192.168.2.2')],
  :secret_key => 'epT5uCIchlsHCeR9dloOeAPG66PtHd9K8l0q9avitiaA/KUrY7DE52hD4yWY+8z1',
  :password   => 'password'

(I specified the IP address for my desktop. The application runs on my Linux linux server on .2.3)

/rack_bug/bookmarklet.html "Toggle Rack :: Bug" Firefox. Rails, "Toggle Rack :: Bug", , "", - Rack-Bug.

, , IRC, Google.

: . - Firefox Windows. Firefox Linux-, , . , 500. :

Status: 500 Internal Server Error
undefined method 'length' for #<Pathname:/home/ofer/src/ssp3>
  /usr/lib/ruby/gems/1.8/gems/ruby-openid-2.1.7/lib/openid/extras.rb:3:in 'starts_with?'
  /home/ofer/src/ssp3/vendor/plugins/rack-bug/lib/rack/bug/panels/sql_panel/query.rb:65:in 'filtered_backtrace'

, , , , . , -, , Firefox dev , , -, ruby-openid.

, .

+3
3

, , , , (.. Ctrl-F5)

0

Is your Linux development server on the same subnet as your desktop? If this is not the case, you need to specify the IP address of your desktop as it appears on the server. For example, my desktop IP is 192.XXX, but from my production server it appears as 84.XXX because it is routed through my ISP gateway.

0
source

Source: https://habr.com/ru/post/1732042/


All Articles