prismicio/ruby-kit — pull request #49 by smd686s (2014-10-30 15:48:46+00:00)
Title: to_s raises Prismic::SearchForm::FormSearchException

Calling .to_s on value from a parameter that is nil raises Prismic::SearchForm::FormSearchException. This affects index pages that are paginated.

@posts = @api.form('everything').
query('[[:d = at(document.type, "article")]]')
.orderings('[my.article.date desc]')
.page(params[:page]).submit(@ref)

This works on http://localhost:3000/blog?page=1 but not http://localhost:3000/blog

The breaking change was introduced in 0c0e669567833f6d5adff46ba3e01c95754ddb81