method

select

select(&block)
public

Returns a new +ActionController::Parameters+ instance with only items that the block evaluates to true.