Archive for February, 2012

Manage URI Query params in Ruby

February 10th, 2012

How to programatically remove a Query parameter from an URI String in Ruby.
For the following URI:
If one wants to remove the “offset” parameter, the following may help.

EDIT: if a left side only param exists, it will be removed. Something like param2 in:
(blogged from Vim)