<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hs9587</author_name>
  <author_url>https://blog.hatena.ne.jp/hs9587/</author_url>
  <blog_title>hs9587’s diary</blog_title>
  <blog_url>https://hs9587.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>コントローラーでの beforeフィルターでちょっと条件をチェックして、場合によっては余所にリダイレクトしようと思った。Railsレシピブック029 によれば、Rails2.0以上ならフィルターメソッドの中で直接 redirect_to すれば良いと言う事だ。 また、幾つかのコントローラーで共有するチェックなので、フィルター自体クラスにして別ファイルにした。 class ＜何かの＞Controller before ＜チェック＞Filter ＜普通にコントローラー沢山＞ end そしてフィルタークラスの中で redirect_to してみたがそんなメソッドは無いと言われる、エラー。 redir…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhs9587.hatenablog.com%2Fentry%2F20080718%2F1216377531&quot; title=&quot;Filterクラスでの redirect_to や flash - hs9587’s diary&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-07-18 19:38:51</published>
  <title>Filterクラスでの redirect_to や flash</title>
  <type>rich</type>
  <url>https://hs9587.hatenablog.com/entry/20080718/1216377531</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
