<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m1smile10often</author_name>
  <author_url>https://blog.hatena.ne.jp/m1smile10often/</author_url>
  <blog_title>出る杭は打たれない</blog_title>
  <blog_url>https://maimux2x.hatenablog.com/</blog_url>
  <categories>
    <anon>学んだこと</anon>
    <anon>フロントエンド</anon>
    <anon>Rails</anon>
    <anon>Ember.js</anon>
  </categories>
  <description>前回、ActiveStorage を使って画像を1枚添付するやり方について見ていきました。 maimux2x.hatenablog.com 今回はその続きで、ActiveStorage を使って複数枚の画像を添付できるようにしていきたいと思います。 まず、Rails 側を修正していきます。 # app/models/post.rb class Post &lt; ApplicationRecord has_many_attached :images # 変更 # 省略 validates :images, content_type: [ &quot;image/png&quot;, &quot;image/jpeg&quot; ] end…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaimux2x.hatenablog.com%2Fentry%2F2025%2F05%2F11%2F204626&quot; title=&quot;【フロントエンド学習記録】ActiveStorageを使ってブログ記事に画像を複数枚添付できるようにする - 出る杭は打たれない&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/m1smile10often/20250510/20250510160207.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-11 20:46:26</published>
  <title>【フロントエンド学習記録】ActiveStorageを使ってブログ記事に画像を複数枚添付できるようにする</title>
  <type>rich</type>
  <url>https://maimux2x.hatenablog.com/entry/2025/05/11/204626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
