কেউ কি এই সমস্যাটির সাথে সমাধান করেছেন Ruby 2.7.0?
আমি rbenvরুবি v2.7.0 ব্যবহার এবং ইনস্টল করেছি এবং তারপরে ব্যবহার করে একটি রেল প্রকল্প তৈরি করেছি Rails v6.0.2.1।
বর্তমানে, একটি চালিয়ে
rails s
rails s -u puma
rails s -u webrick
সার্ভারটি প্রস্তুত এবং সাইটটি পরিবেশন করা হয়েছে তবে Consoleলগটিতে আমি দুটি সতর্কতা বার্তা দেখতে পাচ্ছি:
local:~/rcode/rb27$ rails s
=> Booting Puma
=> Rails 6.0.2.1 application starting in development
=> Run `rails server --help` for more startup options
.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.2.1/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.2.1/lib/action_dispatch/middleware/static.rb:110: warning: The called method `initialize' is defined here
Puma starting in single mode...
* Version 4.3.1 (ruby 2.7.0-p0), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://127.0.0.1:3000
* Listening on tcp://[::1]:3000
সুতরাং, সতর্কতা বার্তা হ'ল:
**.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.2.1/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call**
**.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.2.1/lib/action_dispatch/middleware/static.rb:110: warning: The called method `initialize' is defined here**