Rack installation error. Server does not start

I just installed Rack-Bug and created the middleware file that it needs in the config folder. But I can not start my server. Im using Rails 2.3.4 with Ruby 1.8.7.

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:443:in     `load_missing_constant': uninitialized constant IPAddr (NameError)

from / usr / lib / ruby ​​/ gems / 1.8 / gems / activesupport-2.3.4 / lib / active_support / dependencies.rb: 80: in const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:inconst_missing 'from /home/xxxxx/xxxx/trunk/config/initializers/middleware.rb : 6

I cannot understand what I am doing wrong. Any help would be great.

0
source share
1 answer

I had the same problem.

, .rb( ruby: http://ruby-doc.org/core/classes/IPAddr.html):

"ipaddr"

+3

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


All Articles