I often find myself writing this:
params.delete(:controller)
params.delete(:action)
params.delete(:other_key)
redirect_to my_path(params)
The trail of deletes doesn't feel right and neither does:
[:controller, :action, :other_key].each do |k|
params.delete(k)
end
Is there anything simpler and cleaner?