Sology / smart_listing

Ruby on Rails data listing gem with built-in sorting, filtering and in-place editing.
http://showcase.sology.eu/smart_listing
MIT License
478 stars 137 forks source link

$(...).smart_listing is not a function #212

Closed Paul-Bob closed 1 year ago

Paul-Bob commented 2 years ago
ready = function() {
    $(SmartListing.config.class_name("main")).smart_listing(); //<------- Uncaught TypeError
    return $(SmartListing.config.class_name("controls")).smart_listing_controls();
  };

I can use <%= smart_listing_render(:people) %> and i get a list but when i click on pagination buttons it just don't change the page... I get the response on my index.js.erb but this Uncaught TypeError prevent the list to update using <%= smart_listing_update(:people) %>

I get this exception in all pages of my website. Any idea how to solve it?

Rails 5.0.7.2
ruby 2.6.6
Paul-Bob commented 2 years ago

https://stackoverflow.com/questions/71736636/smart-listing-pagination-works-only-in-new-tab