Link_to with all properties of a model


Say I have a model with the following properties

I am trying to create a link with all of the properties of a model as
parameters. Is this possible in a generic way?

Say I have the model:

filter =
filter.page_number = 2
filter.page_size = 10
filter.query = ‘books’

I want to create a link link:


Sorry for the double post, please ignore this one and use: