RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vincentmilliken
I have an issue with this when im deploying my app to heroku, the vestal_versions gem works great locally but not on heroku. It seems that the versions are not working and my records are not being updated when I edit a post.
Anyone know whats going on?
If you are using Paginate/kaminari with Sunspot use this code with in the index in the Controller.
@search = Sunspot.search(Snippet) do
@snippets = Snippet.where(id: @search.results.map(&:id)).page(params[:page]).per(5)