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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---