<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>furu07yu</author_name>
  <author_url>https://blog.hatena.ne.jp/furu07yu/</author_url>
  <blog_title>行動すれば次の現実</blog_title>
  <blog_url>https://furu07yu.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Ruby</anon>
  </categories>
  <description>クエリ文字列から特定のパラメータのみを削除する方法を説明します。 実装 uri = URI.parse('https://www.example.com?hoge=1&amp;fuga=2&amp;piyo=3') query = Rack::Utils.parse_nested_query(uri.query) query.delete('fuga') uri.query = query.to_param uri.to_s 説明 (1) URL文字列をURIオブジェクトに変換します。 uri = URI.parse('https://www.example.com?hoge=1&amp;fuga=2&amp;piyo=3'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffuru07yu.hatenadiary.jp%2Fentry%2Frails-query-string-delete-parameter&quot; title=&quot;クエリ文字列から特定のパラメータを削除したい | Ruby On Rails - 行動すれば次の現実&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>2021-05-22 15:46:41</published>
  <title>クエリ文字列から特定のパラメータを削除したい | Ruby On Rails</title>
  <type>rich</type>
  <url>https://furu07yu.hatenadiary.jp/entry/rails-query-string-delete-parameter</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
