<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sessan</author_name>
  <author_url>https://blog.hatena.ne.jp/sessan/</author_url>
  <blog_title>setoya-blog</blog_title>
  <blog_url>https://www.setoya-blog.com/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>railsでCookieを設定するときはこんな感じ。 このメソッドを適当なところで呼べば良い def set_cookie cookies[:hoge] = { :value =&gt; 't', :expires =&gt; 1.days.from_now } end 設定されたCookieがあるかどうかを確認するときは、こんな感じ。 cookies[:hoge] == 't' 簡単。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.setoya-blog.com%2Fentry%2F2013%2F01%2F30%2F170909&quot; title=&quot;railsでCookieを設定する - setoya-blog&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>2013-01-30 17:09:09</published>
  <title>railsでCookieを設定する</title>
  <type>rich</type>
  <url>https://www.setoya-blog.com/entry/2013/01/30/170909</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
