Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `new' for BigDecimal:Class #3510

Open
Rob-Schneider opened this issue Jan 21, 2022 · 2 comments
Open

undefined method `new' for BigDecimal:Class #3510

Rob-Schneider opened this issue Jan 21, 2022 · 2 comments

Comments

@Rob-Schneider
Copy link

Rob-Schneider commented Jan 21, 2022

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
Copy link
Author

Rob-Schneider commented Jan 23, 2022

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

@Rob-Schneider
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant