<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>spider-man</author_name>
  <author_url>https://blog.hatena.ne.jp/spider-man/</author_url>
  <blog_title>すぱいだー日記。</blog_title>
  <blog_url>https://spider-man.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>rails の定石を知らないが、ログインしてセションが有効になっているかを判定し、有効で無い場合はログイン画面を表示する方法を考えてみる。ログイン画面では LoginController を使用し、ログインに成功すると ListController に遷移するとする。 LoginController class LoginController &lt; ApplicationController def login begin user = User.find(params[:id]) if user.password == params[:password] session[:second_ses…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fspider-man.hatenadiary.org%2Fentry%2F20071004%2Fp1&quot; title=&quot; ログイン状態を判定する - すぱいだー日記。&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>2007-10-04 00:00:00</published>
  <title> ログイン状態を判定する</title>
  <type>rich</type>
  <url>https://spider-man.hatenadiary.org/entry/20071004/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
