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
I'm getting this error while trying to test invalid forms with image upload. It started to happen after the last gem update.
NoMethodError: private method `select' called for nil:NilClass
0) ArticlesController authenticated as editor PUT #update with invalid data does not update the article and renders the form with errors
Failure/Error: if @article.update(update_params.except(:featured_image).freeze)
NoMethodError:
private method `select' called for nil:NilClass
# /Users/celsomartins/.rvm/gems/ruby-3.2.2@aposta10/gems/carrierwave-3.0.0/lib/carrierwave/mounter.rb:205:in `remove_added'
# /Users/celsomartins/.rvm/gems/ruby-3.2.2@aposta10/gems/carrierwave-3.0.0/lib/carrierwave/mount.rb:400:in `remove_rolled_back_og_image'
The exception occurs in the current_paths = (@removed_uploaders + @uploaders.select(&:staged)).map(&:path)
This should be fixed by #2674. Try the master branch and see if that solves your issue. If it does, you this will be fixed in the next version. If you're still getting the NoMethodError with the master branch, post your results here.
@BrianHawley Is there any estimate for when the release containing this fix will be available? Using master fixed the issue, but we try (our hardest) not to include dependencies that point to git branches so that our vulnerability scans can pick up new CVEs
Hey folks.
carrierwave 3.0.0
I'm getting this error while trying to test invalid forms with image upload. It started to happen after the last gem update.
The exception occurs in the
current_paths = (@removed_uploaders + @uploaders.select(&:staged)).map(&:path)
I'll fix the gem version to the one that was working.
Thanks.
The text was updated successfully, but these errors were encountered: