# Why was overwrite\_params deprecated in Rails 3?

**URL:** <https://www.ruby-forum.com/t/why-was-overwrite-params-deprecated-in-rails-3/189287>\
**Category:** Rails\
**Created:** [May 28, 2010, 4:08am UTC](https://www.ruby-forum.com/t/why-was-overwrite-params-deprecated-in-rails-3/189287 "2010-05-28T04:08:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Michael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@Ryan\_Michael](https://www.ruby-forum.com/u/Ryan_Michael)\
**Post date:** [May 28, 2010, 4:08am UTC](https://www.ruby-forum.com/t/why-was-overwrite-params-deprecated-in-rails-3/189287/1 "2010-05-28T04:08:36Z")

</div>

As far as I can tell there’s no ‘preferred’ way to do this instead of  
using overwrite\_params and this is extrememly usefuly in situations  
where it’s hard to know exactly which parameters will be set in a view  
(for instance filtering a few of multiple options using query string  
params).

---

<div class="post-metadata">

**Author:** ![Ryan\_Michael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@Ryan\_Michael](https://www.ruby-forum.com/u/Ryan_Michael)\
**Post date:** [May 30, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/why-was-overwrite-params-deprecated-in-rails-3/189287/2 "2010-05-30T23:17:32Z")

</div>

Ditto. I’ve returns to a small rails app after a while to discover  
overwite\_params is deprecated, and I havn’t found out why yet.  
Presumably the workaround is to DIY and take everything from  
request.params replacing the bits you want to.

> (for instance filtering a few of multiple options using query string  
> params).  
> Yes exactly what I use it for.

---

<div class="post-metadata">

**Author:** ![Ryan\_Michael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@Ryan\_Michael](https://www.ruby-forum.com/u/Ryan_Michael)\
**Post date:** [May 30, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/why-was-overwrite-params-deprecated-in-rails-3/189287/3 "2010-05-30T23:39:47Z")

</div>

Will this work ok?

instead of:

this:  
\<%= link\_to ‘All’, url\_for( request.params.merge({ :listing\_type =\>  
nil}) ) %\>
