<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akn_ep</author_name>
  <author_url>https://blog.hatena.ne.jp/akn_ep/</author_url>
  <blog_title>廃墟</blog_title>
  <blog_url>https://aknep.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>最近、仕事で必要だったので。 だいたい以下の記事を元にしてるだけですが、ちょいサンプルコードなど含めて解説。 stackoverflow.com 元々は mobylette というgemを使おうとしたらRails5では（たぶん4でも？）コケちゃうので自前実装気味に済ませたって経緯がある。 想定するサービス 基本はレスポンシブだけどTOPページ等の一部の画面だけPC/モバイルでの分岐をしているようなサービス 方法 まず、以下のconcernsを作る。 # app/controllers/concerns/respond_to_mobile_requests.rb require 'active_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faknep.hatenablog.com%2Fentry%2F2017%2F09%2F05%2F172803&quot; title=&quot;Rails5で簡単にモバイル/PCのビュー分岐を行う - 廃墟&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>2017-09-05 17:28:03</published>
  <title>Rails5で簡単にモバイル/PCのビュー分岐を行う</title>
  <type>rich</type>
  <url>https://aknep.hatenablog.com/entry/2017/09/05/172803</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
