<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Saku-Saku</author_name>
  <author_url>https://blog.hatena.ne.jp/Saku-Saku/</author_url>
  <blog_title>SakuraWi - BLog</blog_title>
  <blog_url>https://sakurawi.hateblo.jp/</blog_url>
  <categories>
    <anon>技術-RubyonRails</anon>
    <anon>技術</anon>
  </categories>
  <description>初歩的なkaminariのエラーですが。 ActionView::Template::Error (undefined methodtotal_pages' for #&lt;User::ActiveRecord_Relation` でのエラーが indexのメソッドで出ちゃうな、という時。 if params[:user_id] @users = User.where(xxx_user_id: params[:user_id]).page(params[:page]) else @users = User.all.order(id: :desc).page(params[:page]).per(5…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakurawi.hateblo.jp%2Fentry%2Fkaminari-search&quot; title=&quot;ActionView::Template::Error (undefined method `total_pages&amp;#39; for #&amp;lt;User::ActiveRecord_Relationのエラー対処方法 - SakuraWi - 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>2024-01-25 03:12:41</published>
  <title>ActionView::Template::Error (undefined method `total_pages' for #&lt;User::ActiveRecord_Relationのエラー対処方法</title>
  <type>rich</type>
  <url>https://sakurawi.hateblo.jp/entry/kaminari-search</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
