<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>h3poteto</author_name>
  <author_url>https://blog.hatena.ne.jp/h3poteto/</author_url>
  <blog_title>PartyIX</blog_title>
  <blog_url>https://h3poteto.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Rails</anon>
    <anon>技術</anon>
  </categories>
  <description>Railsにかぎらず，ある程度のフレームワークに乗っかって開発していると「できることはできるんだけど，ちょっと好みに合わせたい」みたいな要望が発生してくる．今回のも，そんな「気を使えばできるけど頑張りたくない」ときに便利なことです． Railsはjavascriptをassetsというフォルダの配下においている． この辺の活用方法はSprocketsやAssetPipelineを理解してもらうとして，とにかくそういう構成になっている．Railsは，何もせずそのまま&quot;application&quot;のレイアウトを使用していると，このassetsフォルダ配下にあるjsをすべて読み込んでいる． なんでこうな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh3poteto.hatenablog.com%2Fentry%2F2014%2F12%2F23%2F194239&quot; title=&quot;Railsで呼び出すjsをページごとに分けたい - PartyIX&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>2014-12-23 19:42:39</published>
  <title>Railsで呼び出すjsをページごとに分けたい</title>
  <type>rich</type>
  <url>https://h3poteto.hatenablog.com/entry/2014/12/23/194239</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
