<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Nanimonai</author_name>
  <author_url>https://blog.hatena.ne.jp/Nanimonai/</author_url>
  <blog_title>モフモフになれたら</blog_title>
  <blog_url>https://mofumofuninaretara.hatenablog.com/</blog_url>
  <categories>
    <anon>WEB開発日記</anon>
  </categories>
  <description>たまにはwebの話。まだまだrailsでwebサービス開発頑張ってます。このブログにもちょこちょこ技術っぽいこと書いていこうかと思います。 投稿系のwebサービスを作っており、自分向けに何かメッセージが発信されたり、コメントがつけられたりした時に、その旨を知らせるバッジ機能を追加しました。 仕組みは非常に簡単。 １、CommentModelにnewカラムを追加。 [shell]rails g migration add_new_to_comments new:boolean[/shell] newカラムのデータ型はboolean。 ２、newカラムのデフォルト値を設定。 [rails]clas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmofumofuninaretara.hatenablog.com%2Fentry%2Fit%2F2395%2F&quot; title=&quot;rails 更新があったらバッジで知らせる機能 - モフモフになれたら&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>2015-11-29 20:38:23</published>
  <title>rails 更新があったらバッジで知らせる機能</title>
  <type>rich</type>
  <url>https://mofumofuninaretara.hatenablog.com/entry/it/2395/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
