# Deleting params so overwrite\_params doesn't include it

**URL:** <https://www.ruby-forum.com/t/deleting-params-so-overwrite-params-doesnt-include-it/81414>\
**Category:** Rails\
**Created:** [January 8, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/deleting-params-so-overwrite-params-doesnt-include-it/81414 "2007-01-08T23:05:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 8, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/deleting-params-so-overwrite-params-doesnt-include-it/81414/1 "2007-01-08T23:05:05Z")

</div>

Hi all,  
I’m trying to delete params in the controller so that in the view, when  
I call overwrite\_params it doesn’t include it.

I think I’ve tried pretty much everything. Here is an example of what I  
mean:

For url /controller/some\_method?bid=4

CONTROLLER:  
def some\_method  
params[:bid]=nil  
@params[:bid]=nil  
@request.params[:bid]=nil  
request.params[:bid]=nil  
@request.parameters[:bid]=nil  
request.parameters[:bid]=nil  
end

VIEW:

\<%= link\_to :overwrite\_params=\>{} %\>

Doing the above still includes bid in the url. Where am I going wrong on  
this? Thanks in advance. Aryk

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [February 29, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/deleting-params-so-overwrite-params-doesnt-include-it/81414/2 "2008-02-29T16:46:51Z")

</div>

Try:

\<%= link\_to :overwrite\_params =\> { :bid =\> nil } %\>

-James

On Jan 8 2007, 4:05 pm, Aryk G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
