Secure active storage with devise : <p>Using devise gem to authenticate all users of an application. 
I'm trying to implement Active Storage. </p>

<p>Let's say that all users must be authenticated as soon as they reach the app: </p>

<pre><code>class ApplicationController &lt; ActionController::Base
  before_action :authenticate_user!

...
end
</code></pre>

<p>How to secure the Active Storage generated routes? </p>

<p>URL of an uploaded file can be accessed without having to authenticate first. The unauthenticated user can get the file url generated by Active Storage.</p>
