Forum: Ruby on Rails link_to with all properties of a model

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Giant C. (Guest)
on 2007-01-09 19:03

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:

<a href="some/action/?page_number=2&page_size=10&query=books">

Giant C. (Guest)
on 2007-01-09 19:04
Sorry for the double post, please ignore this one and use:
This topic is locked and can not be replied to.