Active Storage in rails 5.2

Associate
Joined
19 Jul 2006
Posts
1,847
Just started using this in my projects and initially looked to work ok however on further testing I have these issues
1. if I have a user model say that has one attached image then go to console and do User.first.destroy it looks like its doing its stuff but then hangs anyone else experiencing this?
Edit this happens in console but not when the application code is run
2. if I have a ImageValidator on the user model that only allows .jpg for example and I try uploading a doc the user model doesn't get saved active storage attachments doesn't get saved but I get the document saved in storage and in the active storage blobs table

Cheers,
Hargi
 
Last edited:
Back
Top Bottom