Replies: 2 comments 1 reply
-
Yeah, Ruby 3.0 introduced backwards incompatible keyword argument changes. Shrine 3.x has all |
Beta Was this translation helpful? Give feedback.
1 reply
-
While I think the Shrine team isn't maintaining Shrine 2.x, perhaps if someone else wanted to submit a PR for ruby 3.1 compat, it could be reviewed? i would volunteer to help peer review! But def your best best is moving to shrine 3. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to Heroku's requirement for new builds or updated apps to use Ruby 3.1, I am forced to upgrade my Rails app (which is currently using Shrine gem 2.19) from Ruby 2.7 to Ruby 3.1.
This worked perfectly in Ruby 2.7, but after upgrading to Ruby 3.1,
<%= image_tag(recent_project.cover_image_url(:large)>
throws error message:
ActionView::Template::Error (wrong number of arguments (given 3, expected 2))
From what I've read, maybe this issue has to do with how Ruby 3.x handles keyword arguments. I don't quite understand, and what's the best way to resolve this situation? Thank you
Beta Was this translation helpful? Give feedback.
All reactions