1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Active Storage in rails 5.2

Discussion in 'HTML, Graphics & Programming' started by hargi, Aug 21, 2018.

  1. hargi

    Wise Guy

    Joined: Jul 19, 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?
    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: Aug 21, 2018