You’re not receiving notifications from this thread.
When i load all my users it will display every one of them so of course i add gem will_paginate to gemfile and
User.paginate(:page => params[:page], :per_page => 30)
<%= will_paginate %>
This all works great i load the server and start to browse through my users page by page. Im not sure how its working though becuase in the tests i have this
require 'test_helper' class UsersIndexTest < ActionDispatch::IntegrationTest def setup @user = users(:michael) end test "index including pagination" do log_in_as(@user) get users_path puts @response.body assert 'users/index' assert_select 'div.paginate' #if i remove .paginate assert select test passes. but can not find the paginate code. User.paginate(page: 1, per_page: 10).each do |user| assert_select 'a[href=?]', user_path(user), text: user.username end end end
<div class="paginate"> <%= will_paginate %> </div>
@response.body shows this <div class="paginate"> </div> but there should be another div paginate inside the written one. and if i remove the erb all together leaving the written div things still work. So im lost as to what is happening
Thank you for such an excellent post and review; I am blown away! Continue to publish similar content.
In the slope unblocked game, you will control your ball as it navigates obstacles on an infinite slope. Naturally, the faster the ball rolls, the longer you live. Your score will increase by one for each successful 'jump.'