<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuki-eda0629</author_name>
  <author_url>https://blog.hatena.ne.jp/yuki-eda0629/</author_url>
  <blog_title>edy hub</blog_title>
  <blog_url>https://www.edyhub.com/</blog_url>
  <categories>
  </categories>
  <description>特定の処理をモジュール化したい Railsで独自実装などを記しておく、自前のモジュールを使いたい場合が誰にでもあると思います。 その際の準備など書き記しておきます。 方法 下記に則って進めましょう 命名規則に沿ってモジュールを作る app/libにそのモジュールを置く 使用したいコントローラでincludeする 具体例 1. 命名規則に沿ってモジュールを作る 以下の命名規則に従ってモジュールを作ります。 ファイル名は小文字で書く ファイル名の単語を_（アンダーバー）で区切る クラス名（モジュール名）はアッパーキャメルケースで記述する 例えば、モジュール名がFooBarの場合、ファイル名はfoo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.edyhub.com%2Fentry%2F2019%2F06%2F19%2F210041&quot; title=&quot;Railsでモジュールを作ってインクルードして使うまで - edy hub&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>2019-06-19 21:00:41</published>
  <title>Railsでモジュールを作ってインクルードして使うまで</title>
  <type>rich</type>
  <url>https://www.edyhub.com/entry/2019/06/19/210041</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
