Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery-rails breaks kaminari?
    primarykey
    data
    text
    <p>I updated my Rails 3.0.7 application to use kaminari 0.12.4 (up from 0.10.4) for pagination and jquery-rails 1.0.9 and it seemed to break pagination. I've regenerated the kaminari views since they are different but for some reason ajax isn't working.</p> <pre><code>&lt;%= javascript_include_tag :defaults %&gt; </code></pre> <p>is included. Which produces this in the browser:</p> <pre><code>&lt;script src="/javascripts/jquery.js?1306353646" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/javascripts/jquery-ui.js?1306368501" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/javascripts/jquery_ujs.js?1306381513" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/javascripts/application.js?1290034766" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>In my view I have: &lt;%= paginate @users, :remote => true %></p> <p>Which yields the following error:</p> <blockquote> <p>ActionView::MissingTemplate (Missing template users/show with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:js, "application/ecmascript", "application/x-ecmascript", "<em>/</em>"], :locale=>[:en, :en]} in view paths "/home/epipheus/CodeWarehouse/praypeer/app/views", "/home/epipheus/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/kaminari-0.12.4/app/views"):</p> </blockquote> <p>the following non-ajax version works just fine of course:</p> <pre><code>&lt;%= paginate @users, :remote =&gt; false %&gt; </code></pre> <p>So it seems like I have something wrong with jquery ujs? Please help me. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload