RailsCasts Pro episodes are now free!

Learn more or hide this

Vincent Milliken's Profile

GitHub User: vincentmilliken

Site: vincentmilliken.com

Comments by Vincent Milliken

Avatar

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?

Thanks, Vincent.

Avatar

If you are using Paginate/kaminari with Sunspot use this code with in the index in the Controller.

@search = Sunspot.search(Snippet) do
     fulltext params[:search]
  end
    @snippets = Snippet.where(id: @search.results.map(&:id)).page(params[:page]).per(5)