[Rails] pagination and nested parameters

Daniel Berger
Fri, 27 Jan 2006 19:40:37 -0000

Hi all,

I''ve got a couple select_date form helpers.  For pagination, I need to
submit
these form values.  I tried this, but it''s apparently wrong:

link_to ''Previous page'', {
    :page => @schedule_pages.current.previous,
    :params => {:date => {:month => @month}, :date => {:year =>
@year}}
}

I tried a few variations, but no luck.

What''s the proper way to pass nested parameters?

Thanks,

Dan