%h1= @post.title

- if @post.photo
  = image_tag @post.photo.file.image.url

!= @post.content

%h1= @post.title

- if @post.image
  = image_tag main_app.url_for(@post.image.file)

!= @post.content

Fix URL to use activestorage
Fix URL to use activestorage
