Masonry Jquery in Rails - doesn't work without refreshing the page
问题 I am currently following John Elder's book about building Pintinterest clone using Ruby on Rails.The problem is that Masonry Grid Layout works only when I refresh the page. When I click the link to the list of pins, everything goes to the left side. I tried to fix turbolinks, coffee script, application.js but I gave up after three days. This is my github: https://github.com/Gelin1984/Imager2018 This is my Heroku App: https://imager2018.herokuapp.com/ Coffee Script: $ -> $('#pins')