User specifiy number of records returned

I’m sure this is obvious and I’m just over thinking it, but I’ve got a
page that I’ve set up to return 25 records by default. How can I set
this up so that a user can select more records to view using either a
link_to or a from with select options? Then, how do I feed those params
to the query that yields the results?

Thanks!

DHU! Figured it out…

<%= link_to “Show 50 records”, {:action => “report”, :records => 50 }
%>

@object_records = object.find(:all, :limit => params[:records])

DUH! Figured it out…

<%= link_to “Show 50 records”, {:action => “report”, :records => 50 }
%>

@object_records = object.find(:all, :limit => params[:records])