<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>paulownia</author_name>
  <author_url>https://blog.hatena.ne.jp/paulownia/</author_url>
  <blog_title>NullPointer's</blog_title>
  <blog_url>https://paulownia.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>rails 6ではassets pipelineがデフォルト無効になり、jsはwebpackerで管理されるようになった。 ところがRails 5からアップグレードした場合webpackerは自動的に有効にならず、assets pipelineは無効にされるので、ujsで動いてるリソースのdeleteリンクなどが効かなくなってしまうようだ。 そこでrails 5からアップグレードする際の webpacker を有効にする手順を記録しておく。 ただし、これは独自のJSコードがほとんどなく、ujsを利用している程度の小規模アプリの移行例である。JSをガッツリ記述し、assets pipelineで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpaulownia.hatenablog.com%2Fentry%2F2020%2F01%2F01%2F202628&quot; title=&quot;Rails 5からRails 6へのアップグレードでujsをwebpacker化する - NullPointer&amp;#39;s&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-01 20:26:28</published>
  <title>Rails 5からRails 6へのアップグレードでujsをwebpacker化する</title>
  <type>rich</type>
  <url>https://paulownia.hatenablog.com/entry/2020/01/01/202628</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
