title: Rails Active Storage image link in render json
body: <p>How could I render a json with my posts (each one have an attachment) with their image url?</p>
  
  <pre><code>def index
    @posts = Post.all
    render json: { posts: @posts }, include: :image # Image is the attachment
  end
  </code></pre>
  
  <p>I have this, but I know this is not going to work due to I need the image URL</p>