Coder Social home page Coder Social logo

Comments (2)

kkerley avatar kkerley commented on August 14, 2024

Doing:

paginate @players

Actually loads the page (had to remove the pagination_per_page_links because that just threw errors no matter what), but pagination doesn't work. It's the same records no matter which page I go to and none of the fancy effects happening in your example app are happening for me. I have the JS added to the asset pipeline.

I just don't get it. It seems like there's some massive disconnect between the generic example code given and it actually working in an app. I originally used

smart_listing.collection.each do |player|

in the partial view, but that gave me the same "undefined local variable or method `smart_listing'" error. Pretty much any time I try to use "smart_listing" I get the error.

Is this because I'm using will_paginate elsewhere on the site? That doesn't really make much sense to me at all as this doesn't seem to be having interference issues with will_paginate, it's like the app doesn't believe smart_listing exists despite including the required helpers.

from smart_listing.

kkerley avatar kkerley commented on August 14, 2024

Closing due to solving the issue. I still had my old render call in the index.html.erb file (without the =, though) and removing that suddenly fixed it.

from smart_listing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.