views:

22

answers:

0

So, it looks like overwrite_params is deprecated as of Rails 2.3.6. Is there a suitable workaround that is generally accepted as best-practice?

For example, I used to to be able to do the following (which I thought was quite useful):

url_for(:overwrite_params => {:page => 1})

I've seen the following solution mentioned online ... is this the new way to do it?

url_for(request.params.merge(:page => 1))

Thanks for the help.