You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just encountered the same issue, investigated and found that the problem comes from our own code and not from the gem.
Be careful to remove legacy methods from your code (such as cropping?) before using the gem, otherwise these methods will override the gem ones, which will cause the wrong number of arguments issue.
I'm getting the above error message when clicking save from the crop image screen. I'm using the default form code for the preview / crop screen.
When hitting save I'm getting "wrong number of arguments (1 for 0)"
Looking at the error log, the error is being flagged on:
papercrop (0.3.0) lib/papercrop/model_extension.rb:124:in
reprocess_cropped_attachment'`Looking at that line the issue is in
if cropping?(attachment_name)
which looks like it should be expecting an argument, and the value of attachment_name is the correct attachment name.
I'm currently using Paperclip 4.2.1 (I've tried downgrading Paperclip to 3.4, just incase it was Paperclip issue, but still getting the error).
If you've any ideas to what the issue is or any suggestions to get to the root of the problem, they'd be most welcome.
Thanks
The text was updated successfully, but these errors were encountered: