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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
82c59780911721f5cbe82d3111313519?d=identicon&s=25 Giant Cranes (giantcranes)
on 2007-01-09 18:03
Hi,

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.new
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">

Thanks,
GiantCranes
82c59780911721f5cbe82d3111313519?d=identicon&s=25 Giant Cranes (giantcranes)
on 2007-01-09 18:04
Sorry for the double post, please ignore this one and use:

http://www.ruby-forum.com/topic/93453
This topic is locked and can not be replied to.