<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zariganitosh</author_name>
  <author_url>https://blog.hatena.ne.jp/zariganitosh/</author_url>
  <blog_title>ザリガニが見ていた...。</blog_title>
  <blog_url>https://zariganitosh.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>restful_authenticationを--statefulオプションで使っていて、パスワード忘れの処理を追加したくなった。そこで:resetという状態を追加して、最初は以下のようにしてみた。一見、うまく動きそうな気がするが、実際に動かしてみるとreset_passwordが思っている通りに反応してくれない...。 この問題を解決するには、acts_as_state_machineとActiveRecordが、どのようなタイミングでお互いの処理を連携させるのか、ちゃんと理解しておく必要があったのだ...。 ...（中略）... acts_as_state_machine :initial…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzariganitosh.hatenablog.jp%2Fentry%2F20080826%2F1219731525&quot; title=&quot;acts_as_state_machineのイベント・保存・コールバック等のタイミングに悩む - ザリガニが見ていた...。&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>2008-08-26 15:18:45</published>
  <title>acts_as_state_machineのイベント・保存・コールバック等のタイミングに悩む</title>
  <type>rich</type>
  <url>https://zariganitosh.hatenablog.jp/entry/20080826/1219731525</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
