HI,
it seems the :overwrite_params option has disappeared from the
url_builder. Is there a reason or is it just a side effect of the new
routes? Any chances to see it coming back?
If that matters, I use it a lot :-)
Raph
PS:
For those who don''t know it, it lets you use the current @params as
parameters for eg link_to, just overwriting the values you want.
For example, when displaying a long list on different pages, the only
parameter changing in the url is the page number and you can just do:
link_to ( :overwrite_params => {"page_number" =>
@next_page_number})
working like
link_to (:params => @params.update {"page_number" =>
@next_page_number} )
is not practical as you have to deal with the id, action and
controller (which are in @params too)