<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ayaketan</author_name>
  <author_url>https://blog.hatena.ne.jp/ayaketan/</author_url>
  <blog_title>ayaketanのプログラミング勉強日記</blog_title>
  <blog_url>https://ayaketan.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>libにファイルを追加しコントローラからそのファイルのメソッドを使おうとしたら、読み込めなくて困った。[環境] Windows8 Ruby 1.9.3(p125) Ruby on Rails 3.2.9 libフォルダの直下にsub_account.rbファイルを追加し、その中にSubAccountクラスを定義。 Accountコントローラからそのクラスのメソッドを使おうとしたら、ページにアクセスすると、下記のようなエラーが表示された。 uninitialized constant AccounControllert::SubAccount調べてみたら、rails3ではlib以下は自動的にイン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayaketan.hatenablog.com%2Fentry%2F2013%2F01%2F10%2F142234&quot; title=&quot;Ruby on Rails3  libにファイルを追加したが、自動で読み込まれなくて困った - ayaketanのプログラミング勉強日記&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>2013-01-10 14:22:34</published>
  <title>Ruby on Rails3  libにファイルを追加したが、自動で読み込まれなくて困った</title>
  <type>rich</type>
  <url>https://ayaketan.hatenablog.com/entry/2013/01/10/142234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
