refinery / refinerycms

An extendable Ruby on Rails CMS that supports Rails 6.0+
https://www.refinerycms.com/
MIT License
3.9k stars 1.26k forks source link

undefined method `new' for BigDecimal:Class #3510

Open Rob-Schneider opened 2 years ago

Rob-Schneider commented 2 years ago

Rails 7.0.1 ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux-gnu] /var/lib/gems/2.7.0/gems/bigdecimal-3.1.2

when I try upload any files or images (at the website editor) I've receive this. nomethoderror I think bigdecimal must be downgraded... may be

PS... Ohhh. This is the same ticket. PPS. isn't the same. don't have bigint inside schema.rb

Rob-Schneider commented 2 years ago

the reason is ruby 2.7.2 there is no BigDecimal::new method but there in ruby 2.5.1

Rob-Schneider commented 2 years ago

It was the reason to learn 'rbenv' I've make fresh install by rbenv ruby 2.5.9 (last version with BigDecimal::new) Rails 5.1.7

refinery working without errors.