ruby-2.7 Questions

4

Solved

using Rails 5.2.4.3 Mac OSX Catalina 10.15.6 After updating ruby to 2.7.1 (via rvm) ran rspec spec and received error: Trying to register Bundler::GemfileError for status code 4 but Bundler::Gemf...
Zamboanga asked 1/8, 2020 at 20:24

3

Solved

This: [{a: 1, b: 2}, {a: 3, b: 4}].each do |a:, b:| p a end Raises the following warning in Ruby 2.7 warning: Using the last argument as keyword parameters is deprecated; maybe ** should be a...
Echikson asked 4/6, 2020 at 7:15

2

ruby - 2.7.2 rails - 6.0 paperclip - 6.1.0 I am getting following warning in my console, while using paperclip gem with ruby 2.7.2 /Users/***/.rvm/gems/ruby-2.7.2/gems/paperclip-6.1.0/lib/pape...
Gassing asked 17/4, 2021 at 3:49

2

After upgrading to Ruby 2.7.1 my schema.rb is peppered with the following warnings for multiple tables: # Could not dump table "pages" because of following FrozenError # can't modify froz...
Forgetmenot asked 25/6, 2020 at 8:3

1

I'm curious. Is it surprising that the snippet below yields a FrozenError? The magic comment # frozen_string_literal: true is not present. n = nil s = n.to_s s.force_encoding('UTF-8')
Malodorous asked 20/8, 2020 at 0:0

3

Did anyone resolve this issue with Ruby 2.7.0? I used rbenv and installed Ruby v2.7.0 and then created a Rails project using Rails v6.0.2.1. Currently, by running one of rails s rails s -u puma rai...
Delldella asked 26/12, 2019 at 18:0

2

Solved

I am editing a resource - @article - and whenever I submit it I get the following error: JSON::ParserError in ArticlesController#update 783: unexpected token at '#<ImageUploader::UploadedFile:0...
Fungi asked 4/5, 2020 at 7:21
1

© 2022 - 2024 — McMap. All rights reserved.